[jboss-user] [JNDI/Naming/Network] - Re: InitialContext lookup gives me a

jaikiran do-not-reply at jboss.com
Mon Sep 10 07:18:26 EDT 2007


anonymous wrote : RecordingRemote bean = (RecordingRemote) ic.lookup(RecordingRemote.class.getName());

By default, the bean will be bound to "EAR-FILE-BASE-NAME/BEANCLASSNAME/remote". So if you EAR file name is myApp.ear and then the lookup will be:

RecordingRemote bean = (RecordingRemote) ic.lookup("myApp/RecordingBean/remote");
  | 
Alternately, you can check the JNDI name of your bean by following the steps below:

- Go to http://localhost:8080/jmx-console
- Search for service=JNDIView
- 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. Post that here.



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082565#4082565

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082565



More information about the jboss-user mailing list