aspose file tools*
The moose likes Servlets 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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "connection pool container scope" Watch "connection pool container scope" New topic
Author

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.
Sincerely,
Fedor
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
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17257
    
    6

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.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: connection pool container scope