Unable to specify Jndi Name in DeployTool for EJB have only local interface
I'm facing problem while trying to lookup Entity beans locally from a session bean.
While deploying entity bean, DeployTool is _not_ allowing me to specify Jndi Name the the entity bean that has Local interfaces (EJBObjectLocal and EJBLocalHome) only.
How could I get around this?
Please help.
Hi Elisha,
The jndi-name does not apply to the Local EJB view.Jndi-names are a way of identifying a particular EJB from *outside* the application in which the EJB lives.The Local EJB view is only available to web components and ejbs that live within the same application(.ear)To use the ejb local view from a web or ejb component, define an ejb-local-ref and use the ejb-link element to refer to the ejb-name of the target ejb.
--ken