Originally posted by Jaikiran Pai:
Check your JNDI tree to see the jndi-name to which the bean is bound and then use that jndi-name to do the lookup. Follow these steps for listing the contents of JNDI tree in JBoss:
- Go to http://localhost:8080/jmx-console
- Search for service=JNDIView on the jmx-console page
- Click on that link
- On the page that comes up click on the Invoke button beside the list() method
- The page that comes up will show the contents of the JNDI tree.
On this page, search for your bean and see what's the jndi-name for that bean. If you find it difficult to understand the output of the JNDI tree, just post it here.
why its happening some time(bean Not bounded exception). Can you give me details.
Check your JNDI tree to see the jndi-name to which the bean is bound and then use that jndi-name to do the lookup. Follow these steps for listing the contents of JNDI tree in JBoss:
- Go to http://localhost:8080/jmx-console
- Search for service=JNDIView on the jmx-console page
- Click on that link
- On the page that comes up click on the Invoke button beside the list() method
- The page that comes up will show the contents of the JNDI tree.
On this page, search for your bean and see what's the jndi-name for that bean. If you find it difficult to understand the output of the JNDI tree, just post it here.