public abstract class EJBContainer extends Object implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
static String |
APP_NAME
Standard property name for specifying the application name of
the enterprise bean 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 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 enterprise bean container.
|
static EJBContainer |
createEJBContainer(Map<?,?> properties)
Create and initialize an embeddable enterprise bean 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 AutoCloseable
© Copyright 2019 Eclipse Foundation.
Use is subject to license terms.