However, you should better define data source in your environment
and look up them via JNDI. Tomcat 4.1 settings are described at
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html
(pay your attention to Resource and ResourceParams tags).
For Tomcat 5 change "4.1" to "5.0" in the URL above.

Configuring data sources in this way allows you to deploy your
application easily in various environments (e.g. developer's
workstation, test server, production server) without changing
struts-config.xml

Pavel


On Mon, 17 Jan 2005 08:00:26 -0800 (PST), Ashish Kulkarni
<[EMAIL PROTECTED]> wrote:
> Yes
> it is possible, just have 2 data source definition i
> guess
> 
> --- Jay Chandran <[EMAIL PROTECTED]> wrote:
> 
> > Hi,
> >
> > Is it possible to connect to two databases from a
> > struts application.
> > ie basically is it possible two add two database
> > connectivity in
> > struts-config.xml?
> >
> > Regards,
> >
> > Jay
> >
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
> 
> 
> =====
> A$HI$H
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - now with 250MB free storage. Learn more.
> http://info.mail.yahoo.com/mail_250
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to