tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clare <sea11...@mail.ustc.edu.cn>
Subject Re: Difference of initializing context
Date Mon, 24 Sep 2012 07:48:08 GMT
Hi
In Edison's project.
1.I use @ManagedBean instead of @LocalClient.
2.I bind like this...
    Properties p = new Properties();
    p.put("openjpa.jdbc.SynchronizeMappings",
"buildSchema(ForeignKeys=true)");
    p.put(Context.INITIAL_CONTEXT_FACTORY,
"org.apache.openejb.client.LocalInitialContextFactory");
    // ctxt = new InitialContext(p);
    p.put(OpenEjbContainer.Provider.OPENEJB_ADDITIONNAL_CALLERS_KEY,
getClass().getName());
    EJBContainer.createEJBContainer(p).getContext().bind("inject", this);
 
It works but seems that it still can not load the jndi.properties, am I
making some mistakes?



--
View this message in context: http://openejb.979440.n4.nabble.com/Difference-of-initializing-context-tp4657559p4657616.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message