Hi to all.
I want to place in session creation in the init() method in my servlet.
Like this:
…
import lotus.domino.*
…
public class SimpleServlet extends HttpServlet {
private Session s;
public void init(ServletConfig config) throws ServletException {
s = NotesFactory.createSession();
}
public void doPost(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
{
…
Database db = s.getDatabase(…);
…
}
Is it good ? Is it right way to treat Session ?
Thank you very much in advance.