public void startup() throws Throwable
   {
      if (started)
         throw new IllegalStateException("Container already started");

      List<String> order = new ArrayList<String>(3);
      order.add(".xml");
      order.add(".rar");
      order.add("-ra.xml");
      order.add("-ds.xml");

      boolean management = 
         Boolean.valueOf(SecurityActions.getSystemProperty("ironjacamar.embedded.management", "false"));

      KernelConfiguration kernelConfiguration = new KernelConfiguration();
      kernelConfiguration = kernelConfiguration.name("ironjacamar");
      kernelConfiguration = kernelConfiguration.home(null);
      kernelConfiguration = kernelConfiguration.classLoader(ClassLoaderFactory.TYPE_PARENT_FIRST);
      kernelConfiguration = kernelConfiguration.management(management);
      if (management)
         kernelConfiguration = kernelConfiguration.usePlatformMBeanServer(true);
      kernelConfiguration = kernelConfiguration.parallelDeploy(false);
      kernelConfiguration = kernelConfiguration.remoteAccess(false);
      kernelConfiguration = kernelConfiguration.hotDeployment(false);
      kernelConfiguration = kernelConfiguration.eventListener(new PreClassLoaderEventListener());
      kernelConfiguration = kernelConfiguration.eventListener(new PostClassLoaderEventListener());
      kernelConfiguration = kernelConfiguration.deploymentOrder(new DeploymentOrder(order));

      kernel = KernelFactory.create(kernelConfiguration);
      kernel.startup();

      if (fullProfile)
      {
         deploy(SecurityActions.getClassLoader(EmbeddedJCA.class), "naming.xml");
         deploy(SecurityActions.getClassLoader(EmbeddedJCA.class), "stdio.xml");
         deploy(SecurityActions.getClassLoader(EmbeddedJCA.class), "transaction.xml");
         deploy(SecurityActions.getClassLoader(EmbeddedJCA.class), "jca.xml");
         deploy(SecurityActions.getClassLoader(EmbeddedJCA.class), "ds.xml");
      }

      started = true;
   }
public void startup ( ) throws Throwable { if ( started ) throw new IllegalStateException ( "Container already started" ) ; List < String > order = new ArrayList < String > ( 3 ) ; order . add ( ".xml" ) ; order . add ( ".rar" ) ; order . add ( "-ra.xml" ) ; order . add ( "-ds.xml" ) ; boolean management = Boolean . valueOf ( SecurityActions . getSystemProperty ( "ironjacamar.embedded.management" , "false" ) ) ; KernelConfiguration kernelConfiguration = new KernelConfiguration ( ) ; kernelConfiguration = kernelConfiguration . name ( "ironjacamar" ) ; kernelConfiguration = kernelConfiguration . home ( null ) ; kernelConfiguration = kernelConfiguration . classLoader ( ClassLoaderFactory . TYPE_PARENT_FIRST ) ; kernelConfiguration = kernelConfiguration . management ( management ) ; if ( management ) kernelConfiguration = kernelConfiguration . usePlatformMBeanServer ( true ) ; kernelConfiguration = kernelConfiguration . parallelDeploy ( false ) ; kernelConfiguration = kernelConfiguration . remoteAccess ( false ) ; kernelConfiguration = kernelConfiguration . hotDeployment ( false ) ; kernelConfiguration = kernelConfiguration . eventListener ( new PreClassLoaderEventListener ( ) ) ; kernelConfiguration = kernelConfiguration . eventListener ( new PostClassLoaderEventListener ( ) ) ; kernelConfiguration = kernelConfiguration . deploymentOrder ( new DeploymentOrder ( order ) ) ; kernel = KernelFactory . create ( kernelConfiguration ) ; kernel . startup ( ) ; if ( fullProfile ) { deploy ( SecurityActions . getClassLoader ( EmbeddedJCA . class ) , "naming.xml" ) ; deploy ( SecurityActions . getClassLoader ( EmbeddedJCA . class ) , "stdio.xml" ) ; deploy ( SecurityActions . getClassLoader ( EmbeddedJCA . class ) , "transaction.xml" ) ; deploy ( SecurityActions . getClassLoader ( EmbeddedJCA . class ) , "jca.xml" ) ; deploy ( SecurityActions . getClassLoader ( EmbeddedJCA . class ) , "ds.xml" ) ; } started = true ; }
Startup
@exception Throwable If an error occurs