struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vishal Arora" <vishal.ar...@teleatlas.com>
Subject Re: Multiple Databases.
Date Thu, 20 May 2004 05:22:00 GMT
well  that not the problem  but my problem is that i want to connect to
different databases  in my application and i m using datasource object  and
in my xml file i have given the details of my database
url,username,password  etc etc. but now i want to connect to another
database and if in struts-config.xml i give information abt other database
.but when in my controller when i will give call to my datasource object to
which database the connection will be made and how can i handle
it..like if i want to make connection to Database A and after sometime in
the same file if i want to make connection to DatabaseB how will it work and
what all changes i will have to make.and where. Pleaseif anybody can provide
an example it will be very helpfull.

Thanks.

Riyad Kalla wrote:

> IIRC you should use the connection pool mechanism of your App Server and
> not Struts... I believe its use was deprecated (someone please correct
> me if I'm wrong).
>
> Vishal Arora wrote:
>
> >Hi,
> >    I want to connect to different Databases  in my application  using
> >the connection pooling of struts.How can i implement this and what all
> >changes i have to make in my application  and struts-config.xml file
> >to use such a scenario.If anybody can provide an example  it will be
> >very helpfull.
> >
> >Thanks in advance.
> >Vishal       .
> > "Everybody makes mistakes; that's why they put erasers on pencils."
> >
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org

--
Vishal.

 "Everybody makes mistakes; that's why they put erasers on pencils."



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


Mime
View raw message