Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connection pool container scope

 
Fedor Smirnoff
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Fedor Smirnoff
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic