Having discussed everthing on IRC we kind of missed the results on this
list, so for the benefit of others...
Info is here: http://tomee.apache.org/documentation.html - OpenEJB
Standalone Server
I would just use InitialContext on a downloaded standalone OpenEJB -
http://www.apache.org/dyn/closer.cgi/tomee/tomee-1.6.0.1/openejb-standalone-4.6.0.1.zip
Unzip, then in your own static main void point to it...
env.put(Context.INITIAL_CONTEXT_FACTORY,
"org.apache.openejb.core.LocalInitialContextFactory");
env.put("openejb.home", path.to.openejb.root);
env.put("openejb.base", path.to.openejb.root);
A combination of the following examples will be what you need:
https://svn.apache.org/repos/asf/tomee/tomee/trunk/examples/helloworld-weblogic/src/test/java/org/superbiz/hello/HelloTest.java
https://svn.apache.org/repos/asf/tomee/tomee/trunk/examples/simple-osgi/standard-ejbd-server/src/main/java/org/superbiz/StandardEjbdServer.java
Andy.
--
Andy Gumbrecht
http://www.tomitribe.com
[email protected]
https://twitter.com/AndyGeeDe
TomEE treibt Tomitribe! | http://tomee.apache.org