This content has been marked as final.
Show 1 reply
-
1. Re: JNDI looking up problem from servlet container
jaikiran Feb 17, 2008 9:02 AM (in response to kmalinow)Looks like you have specified an incorrect jndi-name for the lookup string (Actually i am surprised as to how it worked with the test client using java:Hello jndi-name, since the java: is not available to remote clients). Follow the steps below to figure out what the jndi-name of the bean is and then use that name to do the lookup:
- Go to http://< server>:< port>/jmx-console (Ex: 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.
Search for your bean here and find out what's it jndi-name. The use it in your code during the lookup.