Package org.jboss.test.messaging.tools.jboss

Examples of org.jboss.test.messaging.tools.jboss.MBeanConfigurationElement$ConstructorElement


                      "jboss.messaging.destination:service=Queue,name=" +
                      expq +
                      "</attribute>" +
                      "</mbean>";

      MBeanConfigurationElement mbean = new MBeanConfigurationElement(XMLUtil.stringToElement(config));
      ObjectName deston = sc.registerAndConfigureService(mbean);
      sc.invoke(deston, "create", new Object[0], new String[0]);
      return deston;
   }
View Full Code Here


                      "       <attribute name=\"Clustered\">" +
                      String.valueOf(b) +
                      "</attribute>" +
                      "</mbean>";

      MBeanConfigurationElement mbean = new MBeanConfigurationElement(XMLUtil.stringToElement(config));
      ObjectName deston = sc.registerAndConfigureService(mbean);
      sc.invoke(deston, "create", new Object[0], new String[0]);
      return deston;
   }
View Full Code Here

                      "       <attribute name=\"Clustered\">" +
                      String.valueOf(clustered) +
                      "</attribute>" +
                      "</mbean>";

      MBeanConfigurationElement mbean = new MBeanConfigurationElement(XMLUtil.stringToElement(config));
      ObjectName deston = sc.registerAndConfigureService(mbean);
      sc.invoke(deston, "create", new Object[0], new String[0]);
      sc.invoke(deston, "start", new Object[0], new String[0]);
   }
View Full Code Here

                      "    <attribute name=\"Clustered\">" +
                      String.valueOf(clustered) +
                      "</attribute>" +
                      "</mbean>";

      MBeanConfigurationElement mbean = new MBeanConfigurationElement(XMLUtil.stringToElement(config));
      ObjectName deston = sc.registerAndConfigureService(mbean);
      sc.invoke(deston, "create", new Object[0], new String[0]);
      sc.invoke(deston, "start", new Object[0], new String[0]);
   }
View Full Code Here

         }
         config += "</bindings></attribute>";
      }
      config += "</mbean>";

      MBeanConfigurationElement mc = new MBeanConfigurationElement(XMLUtil.stringToElement(config));
      ObjectName on = sc.registerAndConfigureService(mc);

      log.trace("Object name is now: " + on);

      sc.invoke(on, "create", new Object[0], new String[0]);
View Full Code Here

   }

   public ObjectName deploy(String mbeanConfiguration) throws Exception
   {
      Element mbeanElement = XMLUtil.stringToElement(mbeanConfiguration);
      MBeanConfigurationElement mbc = new MBeanConfigurationElement(mbeanElement);
      return sc.registerAndConfigureService(mbc);
   }
View Full Code Here

         ServiceDeploymentDescriptor mdd = ServiceConfigHelper.loadConfigFile(mainConfigFile);

         ServiceDeploymentDescriptor pdd = ServiceConfigHelper.loadConfigFile(persistenceConfigFile);

         MBeanConfigurationElement persistenceManagerConfig = ServiceConfigHelper.getServiceConfiguration(pdd,
                                                                                                          "PersistenceManager");
         persistenceManagerObjectName = sc.registerAndConfigureService(persistenceManagerConfig);
         overrideAttributes(persistenceManagerObjectName, attrOverrides);
         toStop.add(persistenceManagerObjectName);
         sc.invoke(persistenceManagerObjectName, "create", new Object[0], new String[0]);
         sc.invoke(persistenceManagerObjectName, "start", new Object[0], new String[0]);

         MBeanConfigurationElement jmsUserManagerConfig = ServiceConfigHelper.getServiceConfiguration(pdd,
                                                                                                      "JMSUserManager");
         jmsUserManagerObjectName = sc.registerAndConfigureService(jmsUserManagerConfig);
         overrideAttributes(jmsUserManagerObjectName, attrOverrides);
         toStop.add(jmsUserManagerObjectName);
         sc.invoke(jmsUserManagerObjectName, "create", new Object[0], new String[0]);
         sc.invoke(jmsUserManagerObjectName, "start", new Object[0], new String[0]);
         // regioster metadatasore
         /*
          * MBeanConfigurationElement securityStoreConfig = ServiceConfigHelper.getServiceConfiguration(mdd,
          * "SecurityStore"); securityStoreObjectname = sc.registerAndConfigureService(securityStoreConfig);
          * toStop.add(securityStoreObjectname);
          */

         // register server peer as a service, dependencies are injected automatically
         MBeanConfigurationElement serverPeerConfig = ServiceConfigHelper.getServiceConfiguration(mdd, "ServerPeer");

         // overwrite the file configuration, if needed
         overrideServerPeerConfiguration(serverPeerConfig,
                                         serverPeerID,
                                         defaultQueueJNDIContext,
                                         defaultTopicJNDIContext);

         serverPeerObjectName = sc.registerAndConfigureService(serverPeerConfig);

         overrideAttributes(serverPeerObjectName, attrOverrides);

         // ServerPeer serverPeer = (ServerPeer) sc.getMBeanServer().

         log.debug("starting JMS server");

         toStop.add(serverPeerObjectName);
         sc.getMBeanServer()
           .setAttribute(serverPeerObjectName, new Attribute("SecurityStore", sc.startSecurityStore()));
         sc.invoke(serverPeerObjectName, "create", new Object[0], new String[0]);
         sc.invoke(serverPeerObjectName, "start", new Object[0], new String[0]);

         MBeanConfigurationElement postOfficeConfig = ServiceConfigHelper.getServiceConfiguration(pdd, "PostOffice");

         postOfficeObjectName = sc.registerAndConfigureService(postOfficeConfig);
         sc.setAttribute(postOfficeObjectName, "Clustered", clustered ? "true" : "false");

         overrideAttributes(postOfficeObjectName, attrOverrides);
View Full Code Here

                      "jboss.messaging.destination:service=Queue,name=" +
                      expq +
                      "</attribute>" +
                      "</mbean>";

      MBeanConfigurationElement mbean = new MBeanConfigurationElement(XMLUtil.stringToElement(config));
      ObjectName deston = sc.registerAndConfigureService(mbean);
      sc.invoke(deston, "create", new Object[0], new String[0]);
      // sc.invoke(deston, "start", new Object[0], new String[0]);
      return deston;
   }
View Full Code Here

                      "jboss.messaging.destination:service=Queue,name=" +
                      expq +
                      "</attribute>" +
                      "</mbean>";

      MBeanConfigurationElement mbean = new MBeanConfigurationElement(XMLUtil.stringToElement(config));
      ObjectName deston = sc.registerAndConfigureService(mbean);
      sc.invoke(deston, "create", new Object[0], new String[0]);
      return deston;
   }
View Full Code Here

                      "       <attribute name=\"Clustered\">" +
                      String.valueOf(b) +
                      "</attribute>" +
                      "</mbean>";

      MBeanConfigurationElement mbean = new MBeanConfigurationElement(XMLUtil.stringToElement(config));
      ObjectName deston = sc.registerAndConfigureService(mbean);
      sc.invoke(deston, "create", new Object[0], new String[0]);
      return deston;
   }
View Full Code Here

TOP

Related Classes of org.jboss.test.messaging.tools.jboss.MBeanConfigurationElement$ConstructorElement

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.