Using the latest ws, you can execute EJB Embeddable container API (including
JPA) if accessed via
java -Djava.endorsed.dirs=<gf-install>/glassfishv3/glassfish/modules/endorsed
-cp
<gf-install>/glassfishv3/glassfish/modules/glassfish-embedded-static-shell.jar:your-ejb-module
your.main.Main
These are the current limitations:
- tables are not dropped on undeploy;
- monitoring stack traces (that do not affect execution) are seen if another
container is created in the same VM (after closing the previous one);
- not yet supported features:
- specifying user-defined classloader
- specifying appName to be used for all deployed EJB modules
- looking up EJBs via java:app or java:module
- looking up EJBs from one EJB module in another EJB module
Regards,
-marina