Re: jndi path java:comp/env is empty on cdi extension AfterDeploymentValidation event

2015-09-07 Thread Romain Manni-Bucau
openejb:Resource is bound but servlet context is not setup which is normal AFAIK Le 7 sept. 2015 13:15, "manz" a écrit : > Yes it works after, > > Tested using ServletContextListener like this: > > @WebListener > public class MyServletContextListener implements > javax.servlet.ServletContextListe

Re: jndi path java:comp/env is empty on cdi extension AfterDeploymentValidation event

2015-09-07 Thread manz
Yes it works after, Tested using ServletContextListener like this: @WebListener public class MyServletContextListener implements javax.servlet.ServletContextListener { public void contextInitialized(ServletContextEvent sce) { // java:comp/env is populated Context context =

Re: jndi path java:comp/env is empty on cdi extension AfterDeploymentValidation event

2015-09-07 Thread Romain Manni-Bucau
Hi AFAIK there is nothing making it mandatpry to work + are you sure it works after? JNDI portability is not trivial. Using global names can help. Le 7 sept. 2015 04:36, "manz" a écrit : > Hello, > > I am using cdi extension' which is using jndi resources from java:comp/env > > While TomEE is f

jndi path java:comp/env is empty on cdi extension AfterDeploymentValidation event

2015-09-07 Thread manz
Hello, I am using cdi extension' which is using jndi resources from java:comp/env While TomEE is firing the cdi extension 'AfterDeploymentValidation' event, the jndi java:comp/env is not populated. Can anybody confirm that this is BUG in TomEE (in JBoss there is NO problem to lookup for jndi res