javax.ejb.embeddable
Class EJBContainer

java.lang.Object
  extended by javax.ejb.embeddable.EJBContainer

public abstract class EJBContainer
extends Object

Used to execute an EJB application in an embeddable container.

Since:
EJB 3.1 version.
Author:
Florent Benoit
See Also:
EJB 3.1 specification

Field Summary
static String APP_NAME
          Standard property name for specifying the application name of the EJB modules executing within the embeddable container.
static String MODULES
          Standard property name for specifying the set of modules to be initialized.
static String PROVIDER
          Standard property name for specifying the embeddable container implementation bootstrap class.
 
Constructor Summary
EJBContainer()
           
 
Method Summary
abstract  void close()
          Shutdown an embeddable EJBContainer instance.
static EJBContainer createEJBContainer()
          Create and initialize an embeddable EJB container.
static EJBContainer createEJBContainer(Map<?,?> properties)
          Create and initialize an embeddable EJB container with a set of configuration properties.
abstract  Context getContext()
          Retrieve a naming context for looking up references to session beans executing in the embeddable container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APP_NAME

public static final String APP_NAME
Standard property name for specifying the application name of the EJB modules executing within the embeddable container.

See Also:
Constant Field Values

PROVIDER

public static final String PROVIDER
Standard property name for specifying the embeddable container implementation bootstrap class.

See Also:
Constant Field Values

MODULES

public static final String MODULES
Standard property name for specifying the set of modules to be initialized.

See Also:
Constant Field Values
Constructor Detail

EJBContainer

public EJBContainer()
Method Detail

close

public abstract void close()
Shutdown an embeddable EJBContainer instance.


createEJBContainer

public static EJBContainer createEJBContainer()
Create and initialize an embeddable EJB container.


createEJBContainer

public static EJBContainer createEJBContainer(Map<?,?> properties)
Create and initialize an embeddable EJB container with a set of configuration properties.

Parameters:
properties -
Returns:

getContext

public abstract Context getContext()
Retrieve a naming context for looking up references to session beans executing in the embeddable container.

Returns:


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.