Examples of ServiceContainer


Examples of org.jboss.msc.service.ServiceContainer

    String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_JOB_EXECUTOR_WITHOUT_ACQUISITION_STRATEGY);
//    System.out.println(normalizeXML(subsystemXml));
    KernelServices services = createKernelServicesBuilder(null)
        .setSubsystemXml(subsystemXml)
        .build();
    ServiceContainer container = services.getContainer();
//    container.dumpServices();

    assertNotNull("platform service should be installed", container.getService(PLATFORM_SERVICE_NAME));
    assertNotNull("process engine service should be bound in JNDI", container.getService(processEngineServiceBindingServiceName));

    assertNotNull("platform jobexecutor service should be installed", container.getService(PLATFORM_JOBEXECUTOR_SERVICE_NAME));
  }
View Full Code Here

Examples of org.jboss.msc.service.ServiceContainer

    String subsystemXml = FileUtils.readFile(SUBSYSTEM_WITH_PROCESS_ENGINES_AND_JOB_EXECUTOR);
//    System.out.println(normalizeXML(subsystemXml));
    KernelServices services = createKernelServicesBuilder(null)
        .setSubsystemXml(subsystemXml)
        .build();
    ServiceContainer container = services.getContainer();
//    container.dumpServices();

    assertNotNull("platform service should be installed", container.getService(PLATFORM_SERVICE_NAME));
    assertNotNull("platform jobexecutor service should be installed", container.getService(PLATFORM_JOBEXECUTOR_SERVICE_NAME));
    assertNotNull("process engine service should be bound in JNDI", container.getService(processEngineServiceBindingServiceName));

    assertNotNull("process engine controller for engine __default is installed ", container.getService(ServiceNames.forManagedProcessEngine("__default")));
    assertNotNull("process engine controller for engine __test is installed ", container.getService(ServiceNames.forManagedProcessEngine("__test")));


    String persistedSubsystemXml = services.getPersistedSubsystemXml();
//    System.out.println(persistedSubsystemXml);
    compareXml(null, subsystemXml, persistedSubsystemXml);
View Full Code Here

Examples of org.jboss.msc.service.ServiceContainer

    return paClass;
  }

  @SuppressWarnings("unchecked")
  private ProcessApplicationDeploymentService getDeploymentService(StartContext context, ServiceName deploymentServiceName) {
    final ServiceContainer serviceContainer = context.getController().getServiceContainer();
    ServiceController<ProcessApplicationDeploymentService> deploymentService = (ServiceController<ProcessApplicationDeploymentService>) serviceContainer.getRequiredService(deploymentServiceName);
    return deploymentService.getValue();
  }
View Full Code Here

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

        setUpAdministeredObjects();
       
        //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
         sc = new ServiceContainer("transaction");  
        
         sc.start(false);  
       
        firstTime = false;
      }         
View Full Code Here

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

      ResourceManagerFactory.instance.clear();

      // Also need a local tx mgr if test is running remote
      if (ServerManagement.isRemote())
      {
         sc = new ServiceContainer("transaction");

         // Don't drop the tables again!
         sc.start(false);
      }
View Full Code Here

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

        setUpAdministeredObjects();
       
        //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
         sc = new ServiceContainer("transaction");  
        
         sc.start(false);  
       
        firstTime = false;
      }         
View Full Code Here

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

      super.setUp();

      ServerManagement.stop();

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

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

   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

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

      ResourceManagerFactory.instance.clear();     

      //Also need a local tx mgr if test is running remote
      if (ServerManagement.isRemote())
      {
         sc = new ServiceContainer("transaction");        

         //Don't drop the tables again!
         sc.start(false);
      }
View Full Code Here

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

   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, !sc.getDatabaseName().equals("oracle"));
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.