adam bien's blog

How Big Is The Entire EJB 3.1 API Needed To Compile Your Session Beans? 📎

To test your EJBs outside the container, you will need to have the EJB 3.1 annotations available in your classpath. In my past projects we even deployed EJB 3.0 components directly to RCP application. We could start and test the application without even having an application server. The application server is going to be introduced later - in future version of the app.

The recurring question was: how big is the jar needed for compiling / unit test of the EJB 3 pojos? The preview of EJB 3.1 distributed with Glassfish prelude v3 (javax.ejb-10.0-SNAPSHOT.jar) is: 42.2 KB (not MB). It contains most of the EJB 3.1 annotations. In most applications only the "mainstream" annotations are used - so the size of the jar can be further optimized to few KBs...