Examples of GeronimoManagedBean


Examples of org.apache.geronimo.kernel.proxy.GeronimoManagedBean

            // set the keystore properties if its a secure connector
            setKeystoreProperties(actionRequest, newConnectorName);
           
            // Start the connector
            try {
                GeronimoManagedBean managedBean = PortletManager.getManagedBean(actionRequest, newConnectorName);
                managedBean.startRecursive();
            } catch (Exception e) {
                log.error("Unable to start connector", e); //TODO: get into rendered page
            }
            actionResponse.setRenderParameter(PARM_MODE, "list");
        } else if(mode.equals("save")) { // User just submitted the form to update a connector
View Full Code Here

Examples of org.apache.geronimo.kernel.proxy.GeronimoManagedBean

        // The array type is management.geronimo.SecurityRealm (the superclass)
        // The array entry types are security.realm.SecurityRealm (the subclass)
        org.apache.geronimo.management.geronimo.SecurityRealm[] realms = PortletManager.getCurrentServer(request).getSecurityRealms();
        ExistingRealm[] results = new ExistingRealm[realms.length];
        for (int i = 0; i < results.length; i++) {
            final GeronimoManagedBean managedBean = (GeronimoManagedBean) realms[i];
            results[i] = new ExistingRealm(realms[i].getRealmName(), PortletManager.getNameFor(request, realms[i]),
                    managedBean.getState());
        }
        request.setAttribute("realms", results);
        listView.include(request, response);
    }
View Full Code Here

Examples of org.apache.geronimo.kernel.proxy.GeronimoManagedBean

                    resources.add(target);
                }

                JCAAdminObject[] admins = PortletManager.getAdminObjectsForRA(renderRequest, module, new String[]{"javax.jms.Queue", "javax.jms.Topic"});
                for (int j = 0; j < admins.length; j++) {
                    GeronimoManagedBean bean = (GeronimoManagedBean) admins[j];
                    ObjectName name = ObjectName.getInstance(bean.getObjectName());
                    target.getAdminObjects().add(new AdminObjectSummary(bean.getObjectName(), name.getKeyProperty(NameFactory.J2EE_NAME),
                            admins[j].getAdminObjectInterface().indexOf("Queue") > -1 ? "Queue" : "Topic",
                            bean.getState()));
                }
            }
        } catch (MalformedObjectNameException e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of org.apache.geronimo.kernel.proxy.GeronimoManagedBean

        if(results.length > 0) {
            // Needed only when there are any SecurityRealms
            configMgr = ConfigurationUtil.getConfigurationManager(kernel);
        }
        for (int i = 0; i < results.length; i++) {
            final GeronimoManagedBean managedBean = (GeronimoManagedBean) realms[i];
            AbstractName abstractName = PortletManager.getNameFor(request, realms[i]);
            String parent;
            Configuration parentConfig = configMgr.getConfiguration(abstractName.getArtifact());
            ConfigurationModuleType parentType = parentConfig.getModuleType();
            if(ConfigurationModuleType.SERVICE.equals(parentType)) {
                parent = null; // Server-wide
            } else {
                parent = abstractName.getArtifact().toString();
            }
            results[i] = new ExistingRealm(realms[i].getRealmName(), abstractName, managedBean.getState(), parent);
        }
        // Once done, release the ConfigurationManager
        if(configMgr != null) {
            ConfigurationUtil.releaseConfigurationManager(kernel, configMgr);
        }
View Full Code Here

Examples of org.apache.geronimo.kernel.proxy.GeronimoManagedBean

            // set the keystore properties if its a secure connector
            setKeystoreProperties(actionRequest, newConnectorName);
           
            // Start the connector
            try {
                GeronimoManagedBean managedBean = PortletManager.getManagedBean(actionRequest, newConnectorName);
                managedBean.startRecursive();
            } catch (Exception e) {
                log.error("Unable to start connector", e); //TODO: get into rendered page
            }
            actionResponse.setRenderParameter(PARM_MODE, "list");
        } else if(mode.equals("save")) { // User just submitted the form to update a connector
View Full Code Here

Examples of org.apache.geronimo.kernel.proxy.GeronimoManagedBean

            // set the keystore properties if its a secure connector
            setKeystoreProperties(actionRequest, newConnectorName);
           
            // Start the connector
            try {
                GeronimoManagedBean managedBean = PortletManager.getManagedBean(actionRequest, newConnectorName);
                managedBean.startRecursive();
            } catch (Exception e) {
                log.error("Unable to start connector", e); //TODO: get into rendered page
            }
           
            try {
View Full Code Here

Examples of org.apache.geronimo.kernel.proxy.GeronimoManagedBean

            // set the keystore properties if its a secure connector
            setKeystoreProperties(actionRequest, newConnectorName);
           
            // Start the connector
            try {
                GeronimoManagedBean managedBean = PortletManager.getManagedBean(actionRequest, newConnectorName);
                managedBean.startRecursive();
            } catch (Exception e) {
                log.error("Unable to start connector", e); //TODO: get into rendered page
            }
           
            try {
View Full Code Here

Examples of org.apache.geronimo.kernel.proxy.GeronimoManagedBean

                    resources.add(target);
                }

                JCAAdminObject[] admins = PortletManager.getAdminObjectsForRA(renderRequest, module, new String[]{"javax.jms.Queue", "javax.jms.Topic"});
                for (int j = 0; j < admins.length; j++) {
                    GeronimoManagedBean bean = (GeronimoManagedBean) admins[j];
                    ObjectName name = ObjectName.getInstance(bean.getObjectName());
                    target.getAdminObjects().add(new AdminObjectSummary(bean.getObjectName(), name.getKeyProperty(NameFactory.J2EE_NAME),
                            admins[j].getAdminObjectInterface().indexOf("Queue") > -1 ? "Queue" : "Topic",
                            bean.getState()));
                }
            }
        } catch (MalformedObjectNameException e) {
            log.error(e.getMessage(), e);
        }
View Full Code Here

Examples of org.apache.geronimo.kernel.proxy.GeronimoManagedBean

    private void renderList(RenderRequest request, RenderResponse response) throws IOException, PortletException {
        SecurityRealm[] realms = PortletManager.getSecurityRealms(request);
        ExistingRealm[] results = new ExistingRealm[realms.length];
        for (int i = 0; i < results.length; i++) {
            final GeronimoManagedBean managedBean = (GeronimoManagedBean)realms[i];
            try {
                results[i] = new ExistingRealm(realms[i].getRealmName(), ObjectName.getInstance(managedBean.getObjectName()),
                        managedBean.getState());
            } catch (MalformedObjectNameException e) {
                log.error("Unable to retrieve ObjectName for security realm", e);
            }
        }
        request.setAttribute("realms", results);
View Full Code Here

Examples of org.apache.geronimo.kernel.proxy.GeronimoManagedBean

        try {
            ResourceAdapterModule resourceAdapterModule = (ResourceAdapterModule) PortletManager.getManagementHelper(portletRequest).getObject(destinationInfo.getResourceAdapterModuleAbName());
            JCAAdminObject[] jcaAdminObjects = PortletManager.getAdminObjectsForRA(portletRequest, resourceAdapterModule, new String[] { destinationInfo.getType().getDestinationInterface() });
            String targetPhysicalName = destinationInfo.getPhysicalName() == null ? "" : destinationInfo.getPhysicalName();
            for (JCAAdminObject jcaAdminObject : jcaAdminObjects) {
                GeronimoManagedBean bean = (GeronimoManagedBean) jcaAdminObject;
                ObjectName name = ObjectName.getInstance(bean.getObjectName());
                String queueName = name.getKeyProperty(NameFactory.J2EE_NAME);
                String currentPhysicalName = null;
                try {
                    currentPhysicalName = (String) jcaAdminObject.getConfigProperty("PhysicalName");
                } catch (Exception e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.