wood burning stoves
The moose likes Tomcat and the fly likes connection pool container scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "connection pool container scope" Watch "connection pool container scope" New topic

connection pool container scope

Fedor Smirnoff
Ranch Hand

Joined: Apr 21, 2003
Posts: 45
Hi, I have several identical applications running in Tomcat 5, bascially they all have same functionality but used by different users (virtual hosting kind of setup) I need a way for all those applications to pull objects from the same pool, so I guess pool would be on container level. Any ideas on how to do this? Thank you for your time.
Gowrishankar Mudaliar
Ranch Hand

Joined: Oct 20, 2001
Posts: 39
Implement your object cache as a Singleton. This should be accessible if all your applications use the same jvm.
I am not aware if tomcat provides any container level objects. You might also want to take a look into their documentation otherwise.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17271

Good question, let me move this thread to the Tomcat forum, there might be someone there that can best answer your question. This forum is for Servlets questions.

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Fedor Smirnoff
Ranch Hand

Joined: Apr 21, 2003
Posts: 45
I am trying something out right now. I took the PoolManager class and threw it into common/classes under Tomcat while taking it out from classes folder that belongs to applications. I got much testing to do to see if it will in fact properly, so if anyone has anything against it, please do let me know
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: connection pool container scope
It's not a secret anymore!