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

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


      try
      {
         setEnvironmentServerIndex(serverIndex);

         sc = new ServiceContainer(containerConfig, null, serverIndex);
         sc.start(clearDatabase, attrOverrides);

         if (this.getDatabaseType().equals("hsqldb") && sc.isClustered())
         {
            throw new IllegalStateException("The test server cannot be started in clustered mode with hsqldb as a database - must use a shared database");
View Full Code Here


   // Constructors --------------------------------------------------

   public Colocated() throws Exception
   {
      sc = new ServiceContainer("transaction,remoting", null);
      sc.start();

      serverPeer = new ServerPeer(0, "/queue", "/topic");
      serverPeer.start();
View Full Code Here

   // Protected -----------------------------------------------------

   public void setUp() throws Exception
   {
      super.setUp();
      sc = new ServiceContainer("all,-remoting,-security");
      sc.start();

      pm =
         new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(),
                  sc.getPersistenceManagerSQLProperties(),
View Full Code Here

      //the message is acked when still in flight then added
      //when handle is returned.
     
      assertFalse(delivery.isDone());
     
      ServiceContainer sc = new ServiceContainer("all,-remoting,-security");
      sc.start();
     
      PersistenceManager pm =
         new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(),
                  sc.getPersistenceManagerSQLProperties(),
                  true, true, true, false, 100);
      pm.start();
     
      IDManager idm = new IDManager("TRANSACTION_ID", 10, pm);
      idm.start();
     
      TransactionRepository tr = new TransactionRepository(pm, new SimpleMessageStore(), idm);
      tr.start();
     
      Transaction tx = tr.createTransaction();
     
      ((SimpleDelivery)delivery).acknowledge(tx);
     
      assertTrue(delivery.isDone());
     
      pm.stop();
      tr.stop();
     
      sc.stop();
   }
View Full Code Here

      //We need a local transaction and recovery manager
      //We must start this after the remote servers have been created or it won't
      //have deleted the database and the recovery manager may attempt to recover transactions
      if (useArjuna)
      {
         sc = new ServiceContainer("jbossjta");  
      }
      else
      {
         sc = new ServiceContainer("transaction");
      }
      sc.start(false);
     
      ServerManagement.undeployQueue("sourceQueue", 0);
     
View Full Code Here

      //Also need a local tx mgr if test is running remote
      if (ServerManagement.isRemote())
      {
         if (useArjuna)
         {
            sc = new ServiceContainer("all,-transaction,jbossjta");
         }
         else
         {
            sc = new ServiceContainer("transaction");
         }
        
         //Don't drop the tables again!
         sc.start(false);
      }
View Full Code Here

     
      if (ServerManagement.isRemote())
      {
         // We need to start a service container otherwise transaction manager jndi lookup
         // will fail
         sc = new ServiceContainer("transaction");
        
         sc.start(false);
      }
   }
View Full Code Here

   public void setUp() throws Exception
   {
      super.setUp();

      sc = new ServiceContainer("all");
      sc.start();               
     
      pm =
         new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(),
                  sc.getPersistenceManagerSQLProperties(),
View Full Code Here

   public void setUp() throws Exception
   {
      super.setUp();
     
      sc = new ServiceContainer("all,-remoting,-security");
      sc.start();

      pm = new JDBCPersistenceManager(sc.getDataSource(), sc.getTransactionManager(),
                                      sc.getPersistenceManagerSQLProperties(),
                                      true, true, true, false, 100);
View Full Code Here

         fail("This test is not supposed to run remotely!");
      }

      super.setUp();

      sc = new ServiceContainer("all");
      sc.start();               
     
   }
View Full Code Here

TOP

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

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.