Using Domino Classes from J2EE Servlets

Next, we'll look specifically at how to use the Domino Java Classes from J2EE servlet applications. For servlets, we have choices as to where in the servlet life cycle to establish the Domino session and, if required for local sessions, the NotesThread context. Recall that the Web container manages a servlet through four primary stages: loading, initialization (init()), service handling (doGet(), doPost()), and destruction (destroy()). We could establish the Domino session and thread context in the servlet's initialization stage (and undo it in the destruction stage) or establish them for each service request. Naturally, it would be more efficient to establish the session once for the servlet in the initialization ...

Get IBM WebSphere and Lotus Implementing Collaborative Solutions 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.