-
1. Re: JNDI Lookup is not working in thread's run method AS 7.1
santos.sandro Oct 1, 2012 10:29 AM (in response to sandip.jorwekar)Are threads "already" allowed in the J2EE specification ?
Threads were prohibited in the J2EE specifications since the first version (until now ?). They fail in context lookup because they do not have the Container Context.
Try to use the lookup as if you're using an external client, maybe this could help.
If you wanna an correct thread approach in J2EE, try to use JMS queue.
-
2. Re: JNDI Lookup is not working in thread's run method AS 7.1
wdfink Oct 1, 2012 11:20 AM (in response to sandip.jorwekar)Threads are always forbidden inside a JEE application, it is in the responsibility of the server.
but you might use Asynchronous EJB's according to the EJB3.1 spec.
-
3. Re: JNDI Lookup is not working in thread's run method AS 7.1
kmrol Oct 2, 2012 3:05 AM (in response to sandip.jorwekar)Sandip, how do you initialize the InitialContext before issuing lookup?
Try to remove property "jboss.naming.client.ejb.context" in a Properties object passed to InitialContext
and use jboss-ejb-client.properties in your client.