You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by di...@jpmorgan.com on 2006/01/31 17:22:08 UTC

Plug-In sample for creating and keeping DB and Q connection.

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.
        Is Plug-In good place to do this type of initialization ?
        If so can any one point to good sample which does this type of 
initialization ?
        Thanks.
Digant 


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


Re: Plug-In sample for creating and keeping DB and Q connection.

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
http://wiki.apache.org/struts/StrutsPlugins

Niall

----- Original Message ----- 
From: <di...@jpmorgan.com>
Sent: Tuesday, January 31, 2006 4:22 PM


> 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.
>         Is Plug-In good place to do this type of initialization ?
>         If so can any one point to good sample which does this type of
> initialization ?
>         Thanks.
> Digant



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Plug-In sample for creating and keeping DB and Q connection.

Posted by Dave Newton <ne...@pingsite.com>.
digant.k.joshi@jpmorgan.com 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org