Re: JNDI look up fails in user spwaned thread.

2016-06-13 Thread Romain Manni-Bucau
same excepted there the spec forbids explicitly it (tomee tolerates it to keep common code working but some server just fail when doing that). Romain Manni-Bucau @rmannibucau | Blog | Old Wordpress Blog

Re: JNDI look up fails in user spwaned thread.

2016-06-13 Thread Dignesh
So how about the forking a new thread in message driven bean.I am seeing the same issue there as well ? -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/JNDI-look-up-fails-in-user-spwaned-thread-tp4678861p4678867.html Sent from the TomEE Dev mailing list archive at Nab

Re: JNDI look up fails in user spwaned thread.

2016-06-13 Thread Romain Manni-Bucau
Hi it is expected or more explicitly unspecified. EJB as web env (servlet) have their own jndi tree (you can configure some parts in ejb-jar.xml or web.xml) so if you are not in this context then it is up to you to make it work or not. Easy workaround is to wrap the lookup in a known context (ejb

JNDI look up fails in user spwaned thread.

2016-06-13 Thread Dignesh
Hi, JNDI look up to EJB's fail if the look up is done from user spawned thread. I am forking a new thread in my servlet and doing a JNDI look up to EJB, and it is failing. Is it is a bug or it is expected behaviour. -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/JN