Hi Romain, I found the reason why it is not able to lookup. During the server startup, my app is loading few properties from DB. So, DS lookup is failing during server startup. Once the server is started and web context is setup. Lookup is working fine in TomEE.
Now, my question is will I be able to lookup the DS during server startup in TomEE? In Weblogic, we are able to do by creating the InitialContext using below properties. properties.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); properties.put(Context.PROVIDER_URL, "t3://localhost:7001"); Will I be able to get the InitialContext during startup similarly by setting TomEE specific properties? Please advise. Thanks for your help!!! Thanks, Srinvias Atluri. -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/TomEE-Fail-to-lookup-Datasource-from-a-class-in-ear-tp4676718p4676728.html Sent from the TomEE Users mailing list archive at Nabble.com.
