Using Domino Classes from J2EE EJBs

Now we'll look at using the Domino Java classes within an EJB. Access via an EJB may be appropriate if the Domino resources are accessed in the same way across different servlets or JSPs or the access is part of a larger transaction. The first question to address is what type of EJB to use. Out of the three EJB types now available—session, entity, or message-driven—we have only two practical choices: session or message-driven EJBs. Using Domino classes from entity EJBs would require us to provide Bean Managed Persistence using Domino databases, and would be difficult at best since the Domino database is document-oriented and not relational.

We first focus on accessing Domino from a session EJB. To avoid confusion ...

Get IBM WebSphere and Lotus Implementing Collaborative Solutions now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.