• Post Reply Bookmark Topic Watch Topic
  • New Topic

JNDI/EJB3 Host?

 
Rob Mech
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm new to EJB3 and I'm having a hard time grasping how the client knows which server to go to. Right now it appears to only go to localhost which would the default I imagine.

From the EJB3 apress book it has



Now from the API it says

JNDI determines each property's value by merging the values from the following two sources, in order:

The first occurrence of the property from the constructor's environment parameter and (for appropriate properties) the applet parameters and system properties.
The application resource files (jndi.properties).

I'm presuming that the jdni.properties would then contain the remote server name?

Am I on the right track here? Where would the jdni.properties go that would be appropriate and where would i get more info on the key/value for it.

Just looking for a nudge in the right direciton.
[ December 30, 2007: Message edited by: Rob Mech ]
 
Edvins Reisons
Ranch Hand
Posts: 364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When deployed, a bean is bound to a JNDI. When a client needs to find a bean, it has to specify the address of the JNDI to which the bean is bound.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!