public abstract class EJBContainer extends Object
Modifier and Type | Field and Description |
---|---|
static String |
APP_NAME |
static String |
MODULES |
static String |
PROVIDER |
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 an
set of configuration properties and names of modules to be initialized.
|
abstract Context |
getContext()
Retrieve a naming context for looking up references to session beans executing in
the embeddable container.
|
public static final String APP_NAME
public static final String MODULES
public static final String PROVIDER
public abstract void close()
public static EJBContainer createEJBContainer() throws EJBException
EJBException
- Thrown if the container or application could not
be successfully initialized.public static EJBContainer createEJBContainer(Map<?,?> properties) throws EJBException
properties
- One or more spec-defined 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()
Copyright © 2018 JBoss by Red Hat. All rights reserved.