daniel legziel wrote:

> Do entity objects get to publish their name on JNDI direclty, or does one
> have to pass by the home and once in there find the object? In other words
> is there a composed name starting with home name and with the object name
> (to demarcate entities)on which I can direct my JMS messages. The point
> here
> is to JMS directly to the object.

There is no mechanism in EJB that binds entities into JNDI, but there
are (at least) two ways to do this:
*) Make your own code that finds entities and binds them under
well-known names in JNDI
*) Make a JNDI-dereferencer that when looked up does the
findByPrimaryKey for you. See javax.naming.Reference for reference.

The second one is preferred since then you don't have to pre-bind all
entities into JNDI.

/Rickard

--
Rickard �berg
Author of "Mastering RMI"
Chief Architect, TheServerSide.com
   The Middleware Company - We Build Experts!

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to