OSGi Containers

Each OSGi test container is able to launch an OSGi framework and to provision bundles into the running framework.

Native Container

The Native Container runs in the same VM as the driver. This is the recommended approach for most cases.

Forked Container

The Forked Container (since Pax Exam 2.4.0) uses the OSGi Framework Launch API to launch the framework in a separate VM. It provides maximum isolation and avoids classloader issues that may arise with the Native Container. The price you have pay for this is slower start-up and remote debugging.

Pax Runner Container

The Pax Runner Container uses Pax Runner to launch the framework in a separate VM. It was the first and only container in Pax Exam 1.x. The Forked Container is now the preferred solution if you require a separate VM for your system under test.