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...
Web Apps, SPA, PWA with vanilla Java Script (ES 6+), CSS 3 and WebStandards only. As simple as possible, but not simpler. See you at: (Progressive) Web apps, Single Page Apps and WebStandards airhacks workshops at MUC airport, Winter Edition
airhacks.fm the podcast:
Stay in touch: airhacks.news.