Yeah.. I already tried the below one.

Properties p = new Properties();
p.put("java.naming.factory.initial",
"org.apache.openejb.client.LocalInitialContextFactory");

InitialContext ctx = new InitialContext(p);

With this, I am able to see EJBs only. "Resource" is not visible. May I know
which one to use exactly? 



--
View this message in context: 
http://tomee-openejb.979440.n4.nabble.com/TomEE-Fail-to-lookup-Datasource-from-a-class-in-ear-tp4676718p4676734.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Reply via email to