public abstract class EJBContainer extends Object implements AutoCloseable
| Modifier and Type | Field and Description | 
|---|---|
| static String | APP_NAMEStandard property name for specifying the application name of
 the EJB modules executing within the embeddable container. | 
| static String | MODULESStandard property name for specifying the set of modules to be
 initialized. | 
| static String | PROVIDERStandard property name for specifying the embeddable container implementation bootstrap
 class. | 
| Constructor and Description | 
|---|
| EJBContainer() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
public static final String PROVIDER
public static final String MODULES
public static final String APP_NAME
<app-name> portion of the portable
 global JNDI name syntax. If this property is not specified, the
 <app-name> portion of the portable
 global JNDI name syntax does not apply.public static EJBContainer createEJBContainer()
EJBException - Thrown if the container or application
 could not be successfully initialized.public static EJBContainer createEJBContainer(Map<?,?> properties)
properties - Spec-defined and/or vendor-specific
 properties.  The spec reserves the prefix
 "javax.ejb." for spec-defined properties.EJBException - Thrown if the container or application
 could not be successfully initialized.public abstract Context getContext()
public abstract void close()
close() in order to free up the resources
 associated with the embeddable container.close in interface AutoCloseableCopyright © 1996-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.