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?
posted 3 years ago
Ok, I am a bit further in the book and it was discussed in a Q&A on page 118.