Originally posted by kiran sonata:
Hi Kyle
I have an application where in Web module already developed and deployed in websphere 4.0 and now we have developed EJB's and deployed on same sever.How to provide a EJB reference to Web module. The web module has to lookup Session Bean in JavaBean.
Is it required to make a single EAR file?
Is it possible to provide a Session Bean reference to Web module in Console?
Advance thanks.
venkat from sonata
The answer to the first question is yes, they must be in the same ear. The answer to the second question is not necessarily; your web pages (
Servlets or
JSP's) can lookup the EJB by its global name in JNDI, but it's better if you do set up local references and use them instead.
To find out how to use local references, read Richard Monson-Haefel's book on EJB's.
Kyle