Examples of ServiceContainer


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

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

   // 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

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

   // 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

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

      //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

Examples of org.rhq.enterprise.communications.ServiceContainer

        return binaryFileTypes.contains(path.substring(index + 1, path.length()));
    }

    static InputStream remoteStream(InputStream stream) {
        RemoteInputStream remoteStream = (RemoteInputStream) stream;
        ServiceContainer serviceContainer = ServerCommunicationsServiceUtil.getService().getServiceContainer();
        ClientCommandSenderConfiguration config = serviceContainer.getClientConfiguration();
        ClientCommandSender sender = serviceContainer.createClientCommandSender(remoteStream.getServerEndpoint(),
            config);
        sender.startSending();
        remoteStream.setClientCommandSender(sender);

        return stream;
View Full Code Here

Examples of org.safehaus.asyncweb.container.ServiceContainer

            configurer.postProcessBeanFactory(factory);

            context = new GenericApplicationContext(factory);
            context.refresh();

            ServiceContainer container = (ServiceContainer) factory.getBean("container");

            container.start();
        } catch (BeansException e) {
            throw new RuntimeException(e);
        } catch (ContainerLifecycleException e) {
            throw new RuntimeException(e);
        }
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.