17.2. JSP/Servlet-EJB connectivity

A JSP or servlet can locate and call methods on an EJB in a very similar manner to that used by a standalone client. However, there are a few subtleties of which the developer should be aware. In general, the implementation of the servlet or JSP will depend to a certain extent on whether the Web container and the EJB container are part of an integrated J2EE-compliant application server, or essentially separate systems. This distinction can lead to a slight loss of portability, which the developer may want to deal with. In this section, we will discuss connectivity only within the confines of a single application server environment, while the issues of integrating disparate products will be dealt with later ...

Get Applied Enterprise JavaBeans™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.