This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
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: 17249
    
    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
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
Thanks,
Fedor
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connection pool container scope
 
Similar Threads
connection pool container scope
Deploy javax.xml.endpoint in a jar in J2EE container
Single Sign On In Tomcat
The best way to connect\disconnect to Database
Servlet pooling