| Modifier and Type | Field and Description |
|---|---|
| public static final String | APP_NAME
Standard property name for specifying the application name of the EJB modules executing within the embeddable container. |
| public static final String | MODULES
Standard property name for specifying the set of modules to be initialized. |
| private static final String | |
| public static final String | PROVIDER
Standard property name for specifying the embeddable container implementation bootstrap class. |
| private static final ServiceLoader |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public static EJBContainer | Returns: EJBContainer instanceCreate and initialize an embeddable EJB container. |
| public static EJBContainer | Returns: EJBContainer instanceSpec-defined and/or vendor-specific
properties. The spec reserves the prefix
properties)"javax.ejb." for spec-defined properties.Create and initialize an embeddable EJB container with a set of configuration properties. |
| private static String | |
| public abstract Context | Returns: naming contextRetrieve a naming context for looking up references to session beans executing in the embeddable container. |
| private static void | reportError(Map<?, ?>
the properties passed as an argument to the
createEJBContainer() method properties, Map<String, String> the Map of errors encountered during the createEJBContainer() call errors, Set<String> the Set of providers that returned null on
createEJBContainer() call returnedNull)Create a meaningful EJBException in case no EJBContainer provider had been found. |
| APP_NAME | back to summary |
|---|---|
| public static final String APP_NAME Standard property name for specifying the application name of
the EJB modules executing within the embeddable container. If
specified, the property value applies to the
| |
| MODULES | back to summary |
|---|---|
| public static final String MODULES Standard property name for specifying the set of modules to be initialized. Property value is one of the following :
| |
| newLine | back to summary |
|---|---|
| private static final String newLine | |
| PROVIDER | back to summary |
|---|---|
| public static final String PROVIDER Standard property name for specifying the embeddable container implementation bootstrap class. Property value is a fully-qualified class name. | |
| providers | back to summary |
|---|---|
| private static final ServiceLoader<EJBContainerProvider> providers | |
| EJBContainer | back to summary |
|---|---|
| public EJBContainer() | |
| close | back to summary |
|---|---|
| public abstract void close() Redeclares java. Shutdown an embeddable EJBContainer instance. Embeddable applications
should always call | |
| createEJBContainer | back to summary |
|---|---|
| public static EJBContainer createEJBContainer() Create and initialize an embeddable EJB container. JVM classpath is searched for all ejb-jars or exploded ejb-jars in directory format.
| |
| createEJBContainer | back to summary |
|---|---|
| public static EJBContainer createEJBContainer(Map<?, ?> properties) Create and initialize an embeddable EJB container with a set of configuration properties.
| |
| createErrorMessage | back to summary |
|---|---|
| private static String createErrorMessage(Throwable t) | |
| getContext | back to summary |
|---|---|
| public abstract Context getContext() Retrieve a naming context for looking up references to session beans executing in the embeddable container.
| |
| reportError | back to summary |
|---|---|
| private static void reportError(Map<?, ?> properties, Map<String, String> errors, Set<String> returnedNull) throws EJBException Create a meaningful EJBException in case no EJBContainer provider had been found. | |