To start with I want to keep in session, 
Once functionality is tested ! I want to make it better by writing BaseDAO 
to get connection from DB /Q





Dave Newton <[EMAIL PROTECTED]>
01/31/2006 11:27 AM
Please respond to "Struts Users Mailing List"

 
        To:     Struts Users Mailing List <user@struts.apache.org>
        cc: 
        Subject:        Re: Plug-In sample for creating and keeping DB and Q 
connection.


[EMAIL PROTECTED] wrote:
> Hi!
>         In our app we need to communicate to our application server 
using 
> DB connection and Sonic MQ.
>         As per one of earlier suggestion I am trying to write Plug-In 
for 
> creating DB and Q connection and keep for the session life.
>         So any request made by user can use same DB and/or Q connection.
> 
You're going to keep a DB connection in session for each user? That
strikes me as being a Really Bad Idea.

Why not use a connection pool?

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This communication is for informational purposes only. It is not intended
as an offer or solicitation for the purchase or sale of any financial
instrument or as an official confirmation of any transaction. All market prices,
data and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein 
do not necessarily reflect those of JPMorgan Chase & Co., its subsidiaries 
and affiliates

Reply via email to