Varsha Hardikar wrote:
The lookup is done in the servlet's init() method.
I guess then it's being triggered before the bean is bound to JNDI.
Varsha Hardikar wrote:
How do I know if the bean is deployed first before the lookup is done?
The logs that you see on the console will show you the jndi bindings too. So ideally, you should see the beans being bound first before the servlet init() tries to lookup. Can you post the entire logs that you see on the console (not the server.log)