Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.ejb3.embedded
Class EJB3StandaloneBootstrap

    java.lang.Object
      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.19 $
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.lang.Object` | `getDeployment(java.lang.String name)`
`static java.util.Hashtable` | `getInitialContextProperties()`
`static org.jboss.kernel.Kernel` | `getKernel()`
`static void` | `loadMBeanServer()`
`static void` | `registerMBeans(org.jboss.kernel.spi.deployment.KernelDeployment deployment)`
`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` -

### getDeployment

    public static java.lang.Object getDeployment(java.lang.String name)

### registerMBeans

    public static void registerMBeans(org.jboss.kernel.spi.deployment.KernelDeployment deployment)
                               throws java.lang.Throwable

  Throws:
    `java.lang.Throwable`

### 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.

### loadMBeanServer

    public static void loadMBeanServer()
                                throws java.lang.Exception

  Throws:
    `java.lang.Exception`

### createKernel

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

  Throws:
    `java.lang.Exception`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD