Examples of ServiceDeploymentDescriptor


Examples of org.jboss.test.messaging.tools.jboss.ServiceDeploymentDescriptor

      if (multiplexerCofigURL == null)
      {
         throw new Exception("Cannot find " + multiplexerCofigURL + " in the classpath");
      }

      ServiceDeploymentDescriptor multiplexerDD = ServiceConfigHelper.loadConfigFile(multiplexerConfigFile);

      List services = multiplexerDD.query("name", "Multiplexer");

      if (services.isEmpty())
      {
         log.info("Couldn't find multiplexer config");
      }
View Full Code Here

Examples of org.jboss.test.messaging.tools.jboss.ServiceDeploymentDescriptor

   public void deployConnectionFactories(String connFactoryConfigFile,
                                         ServiceAttributeOverrides attrOverrides) throws Exception
   {
      connFactoryObjectNames.clear();

      ServiceDeploymentDescriptor cfdd = ServiceConfigHelper.loadConfigFile(connFactoryConfigFile);

      List connFactoryElements = cfdd.query("service", "ConnectionFactory");

      for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
      {
         MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i.next();
         ObjectName on = registerAndConfigureService(connFactoryElement);
         overrideAttributes(on, attrOverrides);
         // dependencies have been automatically injected already
         invoke(on, "create", new Object[0], new String[0]);
         invoke(on, "start", new Object[0], new String[0]);
         connFactoryObjectNames.add(on);
      }
     
      connFactoryElements = cfdd.query("service", "ClusteredConnectionFactory");

      for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
      {
         MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i.next();
         ObjectName on = registerAndConfigureService(connFactoryElement);
         overrideAttributes(on, attrOverrides);
         // dependencies have been automatically injected already
         invoke(on, "create", new Object[0], new String[0]);
         invoke(on, "start", new Object[0], new String[0]);
         connFactoryObjectNames.add(on);
      }
     
      connFactoryElements = cfdd.query("service", "HTTPConnectionFactory");

      for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
      {
         MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i.next();
         ObjectName on = registerAndConfigureService(connFactoryElement);
         overrideAttributes(on, attrOverrides);
         // dependencies have been automatically injected already
         invoke(on, "create", new Object[0], new String[0]);
         invoke(on, "start", new Object[0], new String[0]);
         connFactoryObjectNames.add(on);
      }
     
      connFactoryElements = cfdd.query("service", "ClusterPullConnectionFactory");

      for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
      {
         MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i.next();
         ObjectName on = registerAndConfigureService(connFactoryElement);
View Full Code Here

Examples of org.jboss.test.messaging.tools.jboss.ServiceDeploymentDescriptor

   public void deployConnectionFactories(String connFactoryConfigFile,
                                         ServiceAttributeOverrides attrOverrides) throws Exception
   {
      connFactoryObjectNames.clear();

      ServiceDeploymentDescriptor cfdd = ServiceConfigHelper.loadConfigFile(connFactoryConfigFile);

      List connFactoryElements = cfdd.query("service", "ConnectionFactory");

      for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
      {
         MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i.next();
         ObjectName on = registerAndConfigureService(connFactoryElement);
         overrideAttributes(on, attrOverrides);
         // dependencies have been automatically injected already
         invoke(on, "create", new Object[0], new String[0]);
         invoke(on, "start", new Object[0], new String[0]);
         connFactoryObjectNames.add(on);
      }

      connFactoryElements = cfdd.query("service", "ClusteredConnectionFactory");

      for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
      {
         MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i.next();
         ObjectName on = registerAndConfigureService(connFactoryElement);
         overrideAttributes(on, attrOverrides);
         // dependencies have been automatically injected already
         invoke(on, "create", new Object[0], new String[0]);
         invoke(on, "start", new Object[0], new String[0]);
         connFactoryObjectNames.add(on);
      }

      connFactoryElements = cfdd.query("service", "HTTPConnectionFactory");

      for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
      {
         MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i.next();
         ObjectName on = registerAndConfigureService(connFactoryElement);
         overrideAttributes(on, attrOverrides);
         // dependencies have been automatically injected already
         invoke(on, "create", new Object[0], new String[0]);
         invoke(on, "start", new Object[0], new String[0]);
         connFactoryObjectNames.add(on);
      }

      connFactoryElements = cfdd.query("service", "ClusterPullConnectionFactory");

      for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
      {
         MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i.next();
         ObjectName on = registerAndConfigureService(connFactoryElement);
View Full Code Here

Examples of org.jboss.test.messaging.tools.jboss.ServiceDeploymentDescriptor

      if (multiplexerCofigURL == null)
      {
         throw new Exception("Cannot find " + multiplexerCofigURL + " in the classpath");
      }

      ServiceDeploymentDescriptor multiplexerDD = ServiceConfigHelper.loadConfigFile(multiplexerConfigFile);

      List services = multiplexerDD.query("name", "Multiplexer");

      if (services.isEmpty())
      {
         log.info("Couldn't find multiplexer config");
      }
View Full Code Here

Examples of org.jboss.test.messaging.tools.jboss.ServiceDeploymentDescriptor

      {
         throw new Exception("Cannot find " + multiplexerCofigURL
               + " in the classpath");
      }
     
      ServiceDeploymentDescriptor multiplexerDD = ServiceConfigHelper
            .loadConfigFile(multiplexerConfigFile);
     
      List services = multiplexerDD.query("name", "Multiplexer");
     
      if (services.isEmpty())
      {
         log.info("Couldn't find multiplexer config");
      }
View Full Code Here

Examples of org.jboss.test.messaging.tools.jboss.ServiceDeploymentDescriptor

   public void deployConnectionFactories(String connFactoryConfigFile,
         ServiceAttributeOverrides attrOverrides) throws Exception
   {
      connFactoryObjectNames.clear();
     
      ServiceDeploymentDescriptor cfdd = ServiceConfigHelper
            .loadConfigFile(connFactoryConfigFile);
     
      List connFactoryElements = cfdd.query("service", "ConnectionFactory");
     
      for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
      {
         MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i
               .next();
         ObjectName on = registerAndConfigureService(connFactoryElement);
         overrideAttributes(on, attrOverrides);
         // dependencies have been automatically injected already
         invoke(on, "create", new Object[0], new String[0]);
         invoke(on, "start", new Object[0], new String[0]);
         connFactoryObjectNames.add(on);
      }
     
      connFactoryElements = cfdd.query("service", "ClusteredConnectionFactory");
     
      for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
      {
         MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i
               .next();
         ObjectName on = registerAndConfigureService(connFactoryElement);
         overrideAttributes(on, attrOverrides);
         // dependencies have been automatically injected already
         invoke(on, "create", new Object[0], new String[0]);
         invoke(on, "start", new Object[0], new String[0]);
         connFactoryObjectNames.add(on);
      }
     
      connFactoryElements = cfdd.query("service", "HTTPConnectionFactory");
     
      for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
      {
         MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i
               .next();
         ObjectName on = registerAndConfigureService(connFactoryElement);
         overrideAttributes(on, attrOverrides);
         // dependencies have been automatically injected already
         invoke(on, "create", new Object[0], new String[0]);
         invoke(on, "start", new Object[0], new String[0]);
         connFactoryObjectNames.add(on);
      }
     
      connFactoryElements = cfdd.query("service",
            "ClusterPullConnectionFactory");
     
      for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
      {
         MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i
View Full Code Here

Examples of org.jboss.test.messaging.tools.jboss.ServiceDeploymentDescriptor

      if (configFileURL == null)
      {
         throw new Exception("Cannot find " + configFilePath + " in the classpath");
      }

      ServiceDeploymentDescriptor pdd = new ServiceDeploymentDescriptor(configFileURL);

      MBeanConfigurationElement postOfficeConfig =
         (MBeanConfigurationElement)pdd.query("service", "PostOffice").iterator().next();

      // first, we try to use a channel factory service, if we find one configured
      String s = (String)postOfficeConfig.getAttributeValue("ChannelFactoryName");

      if (s != null && !skipMultiplex)
View Full Code Here

Examples of org.jboss.test.messaging.tools.jboss.ServiceDeploymentDescriptor

         String persistenceConfigFile = sc.getPersistenceConfigFile(clustered);

         log.info(" Persistence config file .. " + persistenceConfigFile);

         ServiceDeploymentDescriptor mdd = ServiceConfigHelper.loadConfigFile(mainConfigFile);

         ServiceDeploymentDescriptor pdd = ServiceConfigHelper.loadConfigFile(persistenceConfigFile);

         MBeanConfigurationElement persistenceManagerConfig = ServiceConfigHelper.getServiceConfiguration(pdd,
                                                                                                          "PersistenceManager");
         persistenceManagerObjectName = sc.registerAndConfigureService(persistenceManagerConfig);
         overrideAttributes(persistenceManagerObjectName, attrOverrides);
View Full Code Here

Examples of org.jboss.test.messaging.tools.jboss.ServiceDeploymentDescriptor

      {
         throw new Exception("Cannot find " + multiplexerCofigURL
               + " in the classpath");
      }
     
      ServiceDeploymentDescriptor multiplexerDD = ServiceConfigHelper
            .loadConfigFile(multiplexerConfigFile);
     
      List services = multiplexerDD.query("name", "Multiplexer");
     
      if (services.isEmpty())
      {
         log.info("Couldn't find multiplexer config");
      }
View Full Code Here

Examples of org.jboss.test.messaging.tools.jboss.ServiceDeploymentDescriptor

   public void deployConnectionFactories(String connFactoryConfigFile,
         ServiceAttributeOverrides attrOverrides) throws Exception
   {
      connFactoryObjectNames.clear();
     
      ServiceDeploymentDescriptor cfdd = ServiceConfigHelper
            .loadConfigFile(connFactoryConfigFile);
     
      List connFactoryElements = cfdd.query("service", "ConnectionFactory");
     
      for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
      {
         MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i
               .next();
         ObjectName on = registerAndConfigureService(connFactoryElement);
         overrideAttributes(on, attrOverrides);
         // dependencies have been automatically injected already
         invoke(on, "create", new Object[0], new String[0]);
         invoke(on, "start", new Object[0], new String[0]);
         connFactoryObjectNames.add(on);
      }
     
      connFactoryElements = cfdd.query("service", "ClusteredConnectionFactory");
     
      for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
      {
         MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i
               .next();
         ObjectName on = registerAndConfigureService(connFactoryElement);
         overrideAttributes(on, attrOverrides);
         // dependencies have been automatically injected already
         invoke(on, "create", new Object[0], new String[0]);
         invoke(on, "start", new Object[0], new String[0]);
         connFactoryObjectNames.add(on);
      }
     
      connFactoryElements = cfdd.query("service", "HTTPConnectionFactory");
     
      for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
      {
         MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i
               .next();
         ObjectName on = registerAndConfigureService(connFactoryElement);
         overrideAttributes(on, attrOverrides);
         // dependencies have been automatically injected already
         invoke(on, "create", new Object[0], new String[0]);
         invoke(on, "start", new Object[0], new String[0]);
         connFactoryObjectNames.add(on);
      }
     
      connFactoryElements = cfdd.query("service",
            "ClusterPullConnectionFactory");
     
      for (Iterator i = connFactoryElements.iterator(); i.hasNext();)
      {
         MBeanConfigurationElement connFactoryElement = (MBeanConfigurationElement) i
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.