A DeployableContainer implementation that can run and connect to a embedded(same JVM) Apache OpenEJB instance. EJB 3.0 APIs are available, but no JMS. This implementation has lifecycle support, so the container will be started and stopped as part of the test run.
Container Injection Support Matrix
@EJB
|
@EJB (no-interface)
|
@Inject (CDI)
|
@Inject (MC)
|
@PersistenceContext @PersistenceUnit
|
|
|
|
|
|
Configuration
Default Protocol: Local
Container Configuration Options
Name
|
Type
|
Default
|
Description
|
openEjbXml
|
String
|
|
Specify the OpenEJB XML configuration file.
|
jndiProperties
|
String
|
|
Specify the OpenEJB properties configuration file.
|
Example of Maven profile setup
<profile>
<id>openejb-embedded-3.1</id>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian.container</groupId>
<artifactId>arquillian-openejb-embedded-3.1</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.openejb</groupId>
<artifactId>openejb-core</artifactId>
<version>3.1.4</version>
</dependency>
</dependencies>
</profile>