Solved

How would you put the JDBC connection in the session?

Posted on 2002-07-18
2
173 Views
Last Modified: 2010-04-01
Hello,

Upon start of the session, I want to put the JDBC connection in the session, so that all subsequent jsp's can use the connection without having to open a connection of their own....

AND yes, I know about connection pooling, but for other reasons, I want to tie the connection to the session. AND yes, I know the implications to dedicating a connection to an individual session.....

THANKS!
Keith


0
Comment
Question by:keithedward
  • 2
2 Comments
 
LVL 92

Accepted Solution

by:
objects earned 50 total points
ID: 7163620
session.setAttribute("connection", myconnection);
0
 
LVL 92

Expert Comment

by:objects
ID: 7166176
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many Password Managers (PM) out there to choose from. PM's can help with your password habits and routines, but they should not be a crutch you rely on too heavily. I also have an article for company/enterprise PM's.
In this blog, I will share you some basic tips for content marketing and to rank your website on Google.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now