You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jay Chandran <ja...@iqss.co.in> on 2005/01/17 05:54:24 UTC

Two Data Base Connections in struts-config.xml ?

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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Two Data Base Connections in struts-config.xml ?

Posted by Pavel Kolesnikov <pa...@gmail.com>.
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
<ku...@yahoo.com> wrote:
> Yes
> it is possible, just have 2 data source definition i
> guess
> 
> --- Jay Chandran <ja...@iqss.co.in> 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:
> > user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> > user-help@struts.apache.org
> >
> >
> 
> 
> =====
> 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: 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


Re: Two Data Base Connections in struts-config.xml ?

Posted by Ashish Kulkarni <ku...@yahoo.com>.
Yes
it is possible, just have 2 data source definition i
guess

--- Jay Chandran <ja...@iqss.co.in> 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:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 


=====
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org