Examples of GeronimoManagedBean


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

            GBeanData brokerGBeanData = kernel.getGBeanData(new AbstractName(URI.create(sBrokerURI)));
            String sBrokerConfigurationXMLPath = brokerGBeanData.getAttribute("amqBaseDir").toString()
                    + brokerGBeanData.getAttribute("amqConfigFile").toString();
            saveConfigurationFile(resolveConfigurationFile(actionRequest, sBrokerConfigurationXMLPath),
                    sConfigurationXML);
            GeronimoManagedBean jmsBroker = PortletManager.getManagedBean(actionRequest, brokerAbstractName);
            if (kernel.isRunning(brokerAbstractName)) {
                jmsBroker.stop();
            }
            jmsBroker.startRecursive();
            if (!kernel.isRunning(brokerAbstractName)) {
                throw new PortletException(getLocalizedString(actionRequest,
                        "jmsmanager.broker.failUpdateBrokerNoReason", sBrokerName));
            }
            addInfoMessage(actionRequest, getLocalizedString(actionRequest, "jmsmanager.broker.successUpdateBroker",
View Full Code Here

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

               
                boolean activeMQAdapter = module.getVendorName().equals("activemq.org");               

                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());
                    String queueName = name.getKeyProperty(NameFactory.J2EE_NAME);
                    String physicalName = null;
                    try {
                        physicalName = (String) admins[j].getConfigProperty("PhysicalName");
                    } catch (Exception e) {
                        logger.warn("PhysicalName undefined, using queueName as PhysicalName");
                        physicalName = queueName;
                    }
                    String destType = admins[j].getAdminObjectInterface().indexOf("Queue") > -1 ? "Queue" : "Topic";
                    String vendorName = module.getVendorName();
                    DestinationStatistics destinationStat = null;
                    if (physicalName != null) {                       
                        try {
                            JMSDestinationInfo jmsDestinationInfo = new JMSDestinationInfo();
                            jmsDestinationInfo.setPhysicalName(physicalName);
                            jmsDestinationInfo.setType(destType);
                            jmsDestinationInfo.setResourceAdapterModuleAbName(PortletManager.getNameFor(renderRequest, module));
                            destinationStat = JMSMessageHelperFactory.getJMSMessageHelper(vendorName).getDestinationStatistics(renderRequest, jmsDestinationInfo);
                        } catch (JMSException e) {
                            destinationStat = new DestinationStatistics();
                        }
                    }
                    AdminObjectSummary adminObjectSummary = new AdminObjectSummary(bean.getObjectName(), queueName, physicalName, destType, bean.getState(), destinationStat);                                       
                    adminObjectSummary.setQueueBrowserSupported(true);
                    adminObjectSummary.setTopicHistoryBrowserSupported(false);
                    if(activeMQAdapter) {                       
                        adminObjectSummary.setSendMessageSupported(true);
                        if(destType.equals("Queue")) {
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
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.