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: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

--
Vishal.

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



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

Reply via email to