O'Reilly logo

Arquillian Testing Guide by John D. Ament

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Multiple artifacts

So far, we've reviewed creating simple artifacts. Most deployments have either been a WAR file or a JAR file. Arquillian does support RAR and EAR deployment; it's just that in Java EE 6 the need for having EARs has been greatly reduced–you can now deploy your EJBs into your WAR module, so it's unnecessary to have an external EJB-JAR.

There are some modular approaches to the application development and deployment that may require you to build out many deployable archives. OSGi is one standard that helps with it, but other tools exist such as JBoss modules that support similar packaging structures.

Creating EARs

Your application may choose to deploy as an EAR file. This would be based on the library usage as well as the decided deployment ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required