Package org.apache.geronimo.management.geronimo

Examples of org.apache.geronimo.management.geronimo.ResourceAdapterModule


        ResourceAdapterModule[] modules = server.getResourceAdapterModules();

        outer:
        for (int i = 0; i < modules.length; i++) {
            ResourceAdapterModule module = modules[i];
            ResourceAdapter[] adapters = module.getResourceAdapterInstances();
            for (int j = 0; j < adapters.length; j++) {
                ResourceAdapter adapter = adapters[j];
                JCAResource[] resources = adapter.getJCAResourceImplementations();
                for (int k = 0; k < resources.length; k++) {
                    JCAResource resource = resources[k];
View Full Code Here


        ResourceAdapterModule[] modules = server.getResourceAdapterModules();

        outer:
        for (int i = 0; i < modules.length; i++) {
            ResourceAdapterModule module = modules[i];
            ResourceAdapter[] adapters = module.getResourceAdapterInstances();
            for (int j = 0; j < adapters.length; j++) {
                ResourceAdapter adapter = adapters[j];
                JCAResource[] resources = adapter.getJCAResourceImplementations();
                for (int k = 0; k < resources.length; k++) {
                    JCAResource resource = resources[k];
View Full Code Here

    public JCAResource[] getJCAResources(J2EEServer server) {
        List list = new ArrayList();
        ResourceAdapterModule[] modules = server.getResourceAdapterModules();
        for (int i = 0; i < modules.length; i++) {
            ResourceAdapterModule module = modules[i];
            ResourceAdapter[] adapters = module.getResourceAdapterInstances();
            for (int j = 0; j < adapters.length; j++) {
                ResourceAdapter adapter = adapters[j];
                JCAResource[] resources = adapter.getJCAResourceImplementations();
                list.addAll(Arrays.asList(resources));
            }
View Full Code Here

    public JCAResource[] getJCAResources(J2EEApplication application) {
        List list = new ArrayList();
        ResourceAdapterModule[] modules = application.getRAModules();
        for (int i = 0; i < modules.length; i++) {
            ResourceAdapterModule module = modules[i];
            ResourceAdapter[] adapters = module.getResourceAdapterInstances();
            for (int j = 0; j < adapters.length; j++) {
                ResourceAdapter adapter = adapters[j];
                JCAResource[] resources = adapter.getJCAResourceImplementations();
                list.addAll(Arrays.asList(resources));
            }
View Full Code Here

            if(mgr != null) mgr.release();
        }
    }

    private ResourceAdapterParams loadConfigPropertiesByAbstractName(PortletRequest request, String abstractName) {
        ResourceAdapterModule module = (ResourceAdapterModule) PortletManager.getManagedBean(request, new AbstractName(URI.create(abstractName)));
        String dd = module.getDeploymentDescriptor();
        DocumentBuilderFactory factory = XmlUtil.newDocumentBuilderFactory();
        factory.setValidating(false);
        factory.setNamespaceAware(true);
        try {
            DocumentBuilder builder = factory.newDocumentBuilder();
View Full Code Here

    private void loadConnectionFactory(ActionRequest actionRequest, String adapterName, String factoryName, PoolData data) {
      AbstractName abstractAdapterName = new AbstractName(URI.create(adapterName));
      AbstractName abstractFactoryName = new AbstractName(URI.create(factoryName));
     
        ResourceAdapterModule adapter = (ResourceAdapterModule) PortletManager.getManagedBean(actionRequest,abstractAdapterName)
        JCAManagedConnectionFactory factory = (JCAManagedConnectionFactory) PortletManager.getManagedBean(actionRequest, abstractFactoryName);
        data.adapterDisplayName = adapter.getDisplayName();
        data.adapterDescription = adapter.getDescription();
        try {
          data.name = (String)abstractFactoryName.getName().get("name");
            if(data.isGeneric()) {
                data.url = (String) factory.getConfigProperty("ConnectionURL");
                data.driverClass = (String) factory.getConfigProperty("Driver");
View Full Code Here

    private void populatePoolList(PortletRequest renderRequest) {
        ResourceAdapterModule[] modules = PortletManager.getOutboundRAModules(renderRequest, "javax.sql.DataSource");
        List list = new ArrayList();
        for (int i = 0; i < modules.length; i++) {
            ResourceAdapterModule module = modules[i];
            AbstractName moduleName = PortletManager.getManagementHelper(renderRequest).getNameFor(module);
           
            JCAManagedConnectionFactory[] databases = PortletManager.getOutboundFactoriesForRA(renderRequest, module, "javax.sql.DataSource");
            for (int j = 0; j < databases.length; j++) {
                JCAManagedConnectionFactory db = databases[j];
View Full Code Here

            if (mgr != null) mgr.release();
        }
    }

    private ResourceAdapterParams loadConfigPropertiesByAbstractName(PortletRequest request, String abstractName) {
        ResourceAdapterModule module = (ResourceAdapterModule) PortletManager.getManagedBean(request,
                new AbstractName(URI.create(abstractName)));
        String dd = module.getDeploymentDescriptor();
        DocumentBuilderFactory factory = XmlUtil.newDocumentBuilderFactory();
        factory.setValidating(false);
        factory.setNamespaceAware(true);
        try {
            DocumentBuilder builder = factory.newDocumentBuilder();
View Full Code Here

    private void loadConnectionFactory(ActionRequest actionRequest, String adapterName, String factoryName, PoolData data) {
        AbstractName abstractAdapterName = new AbstractName(URI.create(adapterName));
        AbstractName abstractFactoryName = new AbstractName(URI.create(factoryName));

        ResourceAdapterModule adapter = (ResourceAdapterModule) PortletManager.getManagedBean(actionRequest,
                abstractAdapterName);
        JCAManagedConnectionFactory factory = (JCAManagedConnectionFactory) PortletManager.getManagedBean(actionRequest,
                abstractFactoryName);
        data.adapterDisplayName = adapter.getDisplayName();
        data.adapterDescription = adapter.getDescription();
        try {
            data.name = (String) abstractFactoryName.getName().get("name");
            if (data.isGeneric()) {
                data.url = (String) factory.getConfigProperty("ConnectionURL");
                data.driverClass = (String) factory.getConfigProperty("Driver");
View Full Code Here

            if (mgr != null) mgr.release();
        }
    }

    private ResourceAdapterParams loadConfigPropertiesByAbstractName(PortletRequest request, String abstractName) {
        ResourceAdapterModule module = (ResourceAdapterModule) PortletManager.getManagedBean(request,
                new AbstractName(URI.create(abstractName)));
        String dd = module.getDeploymentDescriptor();
        DocumentBuilderFactory factory = XmlUtil.newDocumentBuilderFactory();
        factory.setValidating(false);
        factory.setNamespaceAware(true);
        try {
            DocumentBuilder builder = factory.newDocumentBuilder();
View Full Code Here

TOP

Related Classes of org.apache.geronimo.management.geronimo.ResourceAdapterModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.