Solved

How would you put the JDBC connection in the session?

Posted on 2002-07-18
2
175 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
logging jar 1 110
Fisheye tool 2 111
dateFashion java challenge 9 141
equalIsNot  challenge 43 143
Each year, investment in cloud platforms grows more than 20% (https://www.immun.io/hubfs/Immunio_2016/Content/Marketing/Cloud-Security-Report-2016.pdf?submissionGuid=a8d80a00-6fee-4b85-81db-a4e28f681762) as an increasing number of companies begin to…
The question appears often enough, how do I transfer my data from my old server to the new server while preserving file shares, share permissions, and NTFS permisions.  Here are my tips for handling such a transfer.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

777 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