We are in the process of migrating a big application from Domino to Notes(for back office, data container)/J2EE(for front office).
This application will mainly use servlets and perhaps JSP. We don’t plan using EJB at that time.
After a few weeks of tests for this migration I have some questions without really good answers.
Is there a “best” solution between local and IIOP access. I understand that IIOP allows to split servers if we need to but does it bring performancer issues comparing to local access.
We’ve got a lot of Notes Object (databases and documents) to put in cache and used during all the application life by all the servlets and JSP (shared among them at application scope with the setAttribute and getAttribute methods of the servletContext class). Will it cause problems, since all those elements will depend of only one session and how to initialize properly those cached elements regarding NotesThread.sinitThread()and stermThread().
More generally is there a J2EE/Domino best practice guide out somewhere ? I found a lot of samples of building servlets using Domino object but nothing at the application scale with object sharing and so on.
1st question : what version of Domino are u using ?
2nd question : why are u using a J2EE frontend ?
As far as ur interogations :
remote access, though requiring network access (even locally), allows u to cache objects between requests so it may be the good solution.
with remote access, the init/term thread is not required so u can cache objects between requests
I remember that 6.02 or 03 brought the ability to reuse session objects between pages via domino jsp taglig
for best practice, I recommend the notes.net today (2 articles recently about J2EE acessing domino objects) + www.looseleaf.net, mister Bob Balaban’s web site.
Hope this helps
note : as you are from France too, allow me to suggest, not for this particular J2EE pb but in general, visit this Domino discussion forum : http://domino-dev.dominux.net
Subject: RE: A few questions about J2EE with Domino
Thanks for this fast answer.
To answer to your question :
we’re working on R6.5 but it would be great to have our application running with R5 since most of our customer won’t upgrabe before a long time.
2)We’re using Domino mainly as a data container and Notes as Back Office tools. We also use the advantage of replication and strong security features for the back office but we need to publish clean HTML in front end. Domino is great but when you have to unplug all its automatism to get a total control on your result it become a bit heavy.
We also got a lot of data (configuration documents, database collection) that we would like to keep in memmory and not reload at each HTTP request. As the agent architecture doesn’t provide this possibility we decided to migrate to Servlet/JSP technology.
Thanks for the remote access information. I was abble to reuse object with local access but I was not sure of I missed the articles in LDD (I made a search on J2EE and nothing came out). Those articles are interesting but they only are a synthesis of different part of online Help. They do not give advice on what type of access to use regarding your needs.