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

Examples of org.jboss.test.messaging.tools.jmx.ServiceAttributeOverrides


   // Public --------------------------------------------------------

   public void testMessageRedistributionAmongNodes() throws Exception
   {
      // start servers with redistribution policies that actually do something
      ServiceAttributeOverrides attrOverrides = new ServiceAttributeOverrides();

      ObjectName postOfficeObjectName = new ObjectName("jboss.messaging:service=PostOffice");

      attrOverrides.
         put(postOfficeObjectName, "MessagePullPolicy",
             "org.jboss.messaging.core.plugin.postoffice.cluster.DefaultMessagePullPolicy");

      attrOverrides.put(postOfficeObjectName, "StatsSendPeriod", new Long(1000));

      ServerManagement.start(0, "all", attrOverrides, true);
      ServerManagement.start(1, "all", attrOverrides, false);

      ServerManagement.deployQueue("testDistributedQueue", 0);
View Full Code Here


   {
      // Make sure all servers are created and started; make sure that database is zapped ONLY for
      // the first server, the others rely on values they expect to find in shared tables; don't
      // clear the database for those.

      ServiceAttributeOverrides override = new ServiceAttributeOverrides();
      override.put(new ObjectName("jboss.messaging.connectionfactory:service=ConnectionFactory"),
         "LoadBalancingFactory", "org.jboss.jms.client.plugin.RandomLoadBalancingFactory");
      ServerManagement.start(0, "all", override, true);

      try
      {
View Full Code Here

   {
      // Make sure all servers are created and started; make sure that database is zapped ONLY for
      // the first server, the others rely on values they expect to find in shared tables; don't
      // clear the database for those.

      ServiceAttributeOverrides override = new ServiceAttributeOverrides();
      override.put(new ObjectName("jboss.messaging.connectionfactory:service=ConnectionFactory"),
         "LoadBalancingFactory", "org.jboss.jms.client.plugin.RandomLoadBalancingFactory");
      ServerManagement.start(0, "all", override, true);
      ServerManagement.start(1, "all", override, false);

      try
View Full Code Here

      // start "raw" remoting, don't use JBM configuration

      String addr = ServiceContainer.getCurrentAddress();
      int port = PortUtil.findFreePort(addr);
      String serviceLocatorString = "socket://" + addr + ":" + port ;
      ServiceAttributeOverrides sao = new ServiceAttributeOverrides();
      sao.put(ServiceContainer.REMOTING_OBJECT_NAME, "LocatorURI", serviceLocatorString);

      ServerManagement.start(0, "remoting", sao, true, false);

      String s = (String)ServerManagement.
         getAttribute(ServiceContainer.REMOTING_OBJECT_NAME, "InvokerLocator");
View Full Code Here

            "marshaller=org.jboss.jms.server.remoting.JMSWireFormat&" +
            "serializationtype=jboss&" +
            "socket.check_connection=false&" +
            "unmarshaller=org.jboss.jms.server.remoting.JMSWireFormat";

      ServiceAttributeOverrides sao = new ServiceAttributeOverrides();
      sao.put(ServiceContainer.REMOTING_OBJECT_NAME, "LocatorURI", serviceLocatorString);

      ServerManagement.start(0, "remoting", sao, true, false);

      // obtain the server locator from the service itself, so we won't have any doubts we use
      // the right one
View Full Code Here

      int port = PortUtil.findFreePort(addr);

      String serviceLocatorString = "socket://" + addr + ":" + port +
         "/?onewayThreadPool=org.jboss.jms.server.remoting.DirectThreadPool";

      ServiceAttributeOverrides sao = new ServiceAttributeOverrides();
      sao.put(ServiceContainer.REMOTING_OBJECT_NAME, "LocatorURI", serviceLocatorString);

      ServerManagement.start(0, "remoting", sao, true, false);

      String s = (String)ServerManagement.
         getAttribute(ServiceContainer.REMOTING_OBJECT_NAME, "InvokerLocator");
View Full Code Here

         ServerManagement.stop();
      }

      // start a "standard" (messaging-enabled) remoting, we need to strip off the
      // marshaller/unmarshaller, though, since it can only bring trouble to this test ...
      ServiceAttributeOverrides sao = new ServiceAttributeOverrides();
      sao.put(ServiceContainer.REMOTING_OBJECT_NAME,
              ServiceContainer.DO_NOT_USE_MESSAGING_MARSHALLERS, Boolean.TRUE);

      ServerManagement.start(0, "remoting", sao, true, false);

      String s = (String)ServerManagement.
View Full Code Here

TOP

Related Classes of org.jboss.test.messaging.tools.jmx.ServiceAttributeOverrides

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.