• Post Reply Bookmark Topic Watch Topic
  • New Topic

Connection manager in Web applications�.

 
Pat Peg
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Connection manager in Web applications�.

I am wondering, how specifically do I deploy a connection manager? I have a web application running on a tomcat server. It is mostly JSP�s. I do have one servlet and I use it like this�.


So I get that part of the technology. The use bean is basically declaring an instance of class Constance and now I can reference the instance with constance.whateverMethod() on that page.
So now, if I built a connection manager am I doing the same thing? Would I make the scope=�application� and put useBean on the index page? I guess that is my big question for the day.


p.s. wasn�t sure if this is really a jsp question or servlet so sorry if it needs to be moved.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would not do this in a JSP at all. If you do, you are waiting for the first JSP to be hit before performing some necessary app setup. Not the best idea.

Rather, look into a servlet context listener to perform app-centric setup.
[ February 22, 2006: Message edited by: Bear Bibeault ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!