I'm new to EJB and I have few questions regarding local EJB. 1. Is that true that standalone (not inside enterprise app) web or client apps can't access local EJB? If no, then how to do the JNDI lookup? As far as I know, there's no way to provide the EJB JNDI for local EJB. Please correct me if I'm wrong.
2. If for example, the web module and EJB module are inside the enterprise application, how is it possible for the web module to access the local EJB inside the EJB module. I know we need to provide <ejb-local-ref> in web.xml, but once again, how to do the JNDI lookup? Or it's not necessary anymore to do JNDI lookup?
3. Is the EJB JNDI vendor-specific? In Sun Java System App Server, it's something like
Hope my questions are clear enough. Thanks a lot.
SCJP 5.0, SCWCD 1.4, SCBCD 1.3, SCDJWS 1.4
First you cannot access local interfaces by standalone client.local interfaces are accesses by container only. if you want to access local interfaces use session bean. What i maean to say that call local interfaces through session bean(session facade design pattern). i.e standalone client will access session bean using jndi. session bean will access local interfaces.
I have a knack for fixing things like this ... um ... sorry ... here is a consilitory tiny ad: