should be in this one, internally it is in Context c = SystemInstance.get().getComponent(ContainerSystem.class).getJNDIContext(); and this local context factory should access it as fallback. maybe a bad naming? I would use openejb:Resource/MyDs there.
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> 2015-11-05 6:23 GMT-08:00 seenu.atluri <[email protected]>: > 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. >
