org.jboss.ejb3.embedded
Class EJB3StandaloneBootstrap

java.lang.Object
  extended by org.jboss.ejb3.embedded.EJB3StandaloneBootstrap

public class EJB3StandaloneBootstrap
extends java.lang.Object

This class is used to bootstrap the ejb3 container. It find things by ClassLoader.getResource and will load by default the embedded-jbosss-beans.xml file and the ejb3-interceptors-aop.xml file.

This is usually only used in standalone Java programs or Junit tests.

Version:
$Revision: 1.17 $
Author:
Bill Burke

Field Summary
static java.util.HashSet ignoredJars
           
static org.jboss.kernel.Kernel kernel
           
 
Constructor Summary
EJB3StandaloneBootstrap()
           
 
Method Summary
static void boot(java.lang.String configPath)
          Bootstrap the EJB3 container by loading up JBoss Microcontainer files.
static EJB3StandaloneDeployer createDeployer()
          Create a deployer that you can start deploying to.
static void createKernel()
           
static void deployXmlResource(java.lang.String resource)
          Deploy a JBoss Microcontainer XML file.
static java.util.Hashtable getInitialContextProperties()
           
static org.jboss.kernel.Kernel getKernel()
           
static void scanClasspath()
          Scan java.class.path System property for jars that contain EJB3 files.
static void scanClasspath(java.lang.String paths)
          Scan java.class.path System property for jars that contain EJB3 files.
static void shutdown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kernel

public static org.jboss.kernel.Kernel kernel

ignoredJars

public static java.util.HashSet ignoredJars
Constructor Detail

EJB3StandaloneBootstrap

public EJB3StandaloneBootstrap()
Method Detail

getKernel

public static org.jboss.kernel.Kernel getKernel()

deployXmlResource

public static void deployXmlResource(java.lang.String resource)
Deploy a JBoss Microcontainer XML file.

Parameters:
resource -

getInitialContextProperties

public static java.util.Hashtable getInitialContextProperties()

scanClasspath

public static void scanClasspath(java.lang.String paths)
Scan java.class.path System property for jars that contain EJB3 files.

This is unportable and unreliable. Use with caution.


scanClasspath

public static void scanClasspath()
Scan java.class.path System property for jars that contain EJB3 files.

This is unportable and unreliable. Use with caution.


createDeployer

public static EJB3StandaloneDeployer createDeployer()
Create a deployer that you can start deploying to. You must call create/start and stop/destroy to bootstrap and shutdown

Returns:

shutdown

public static void shutdown()

boot

public static void boot(java.lang.String configPath)
Bootstrap the EJB3 container by loading up JBoss Microcontainer files.

Parameters:
configPath - base path for default resources. null or "" should be good enough.

createKernel

public static void createKernel()
                         throws java.lang.Exception
Throws:
java.lang.Exception