On Aug 5, 2006, at 1:29 PM, Mohammed Nour wrote:

Hi All...

During my play with OPENEJB-146 I was trying to deploy a bean that could be looked up through JNDI and has a local Home and Component interfaces, at first I had *NoNameFound* exception when I used the JNDI name assigned to this bean in the openejb-jar.xml, I went through the code of OEJB and found out that it adds the word *Local* to this JNDI name because this bean has a local Home and Component interfaces, and I sould lookup this bean using this modified JNDI name, I wonder why this happnes? shouldn't the client be able to lookup the bean using the JNDI name that she\he has assigned to the bean?

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.

-David



Thanks and best regards...
Mohammad Nour El-Din

Reply via email to