On Aug 5, 2006, at 2:05 PM, Mohammed Nour wrote:

Hi Dave...

On 8/5/06, David Blevins <[EMAIL PROTECTED]> wrote:
When you want the javax.ejb.EJBHome, you use the name you gave it.
When you want the LocalHome, you tack on "Local" to the JNDI name.
Also note, you can't lookup LocalHomes over the
RemoteInitialContextFactory.


:), These info I already know, but my main question is why?, the client should provide the JNDI that he\she has provided in the openejb- jar.xml, and if the EJB is providing a Local Home interface this lookup should return the local Home, and when it is providing the remote Home interface the lookup
should return the remote one [...]

The answer to that is another question. A bean can have both remote and local interfaces, so when they look something up from JNDI, which set of interfaces should they get?

The answer is probably that we should allow them to explicitly specify the the jndi name for each interface, rather than assuming the jndi name is for the remote interface and creating a jndi name for the local interface by tacking "Local" on to it.

That'd definitely be a good feature to add to jira. Would you like the honors?

-David

Reply via email to