In response to “Lessons in Domino, Java, Eclipse and Tomcat” at wissel.net:
Take a look at BurnPC where there is an example of using Jakarta Commons Pool to manage the pool side of things. Jakarta Commons Pool is the base for all pools (incl. the database connection pool) used in Tomcat and is rock solid. The only thing to do is to write the code for the Domino Session part of things which the site also has an example of. You might consider going that way.
The session pool is probably only applicable for remote Corba sessions since there will be some threading issues (due to the use of NotesThread initialization/termination) with the local session which will be difficult (but not impossible) to handle. If you want to use local session I can recommend a servlet filter/ThreadLocal approach (as described here).
Hi Mikkel,
thanks for the vector. Now I only need to upgrade my thread skills. I’m not sure what is worse: my Chinese or my understanding of threads
🙂 stw