• Post Reply Bookmark Topic Watch Topic
  • New Topic

Head First EJB question on JNDI lookup

 
Tom Landry
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

The J2EE is running, the EJB has been deployed and the Advice sample works.

I can see each time the Client is run there is output on the J2EE console.

The client application uses these calls to invoke the JNDI lookup being handled by the J2EE server.
Context ic = new InitialContext();
Object o = ic.lookup("Advisor");

My question is how does it find it?
Eventually when placed on a remote server I expect it will require including the Server and port, but since all is being run locally what is happening behind the scenes?
Is there a default port being used when the lookup is done?
Is it configurable and if so how can it be changed within J2EE and the client application?
 
Tom Landry
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, I am a bit further in the book and it was discussed in a Q&A on page 118.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!