The Embedded GlassFish container adapts the glassfish-embedded-all
artifact to the Pax Exam test container API. Embedded GlassFish does not support any of the OSGi features of a stand-alone GlassFish server.
For testing OSGi-enabled applications on GlassFish with Pax Exam, use the Hybrid GlassFish Container. If you do not need OSGi, you can stick with this Embedded GlassFish Container which is a good deal faster. |
This is the standard lifecycle of the Embedded GlassFish container:
pax.exam.glassfish.config.dir
(defaulting to src/test/resources/glassfish-config
) contains a domain.xml
file, then this file is used to configure the Embedded GlassFish server.
If you require any additional libraries for the server or domain class loader (e.g. JDBC drivers), simply add them to the classpath of your project. |