I would have guessed, that instead of "<ds1", you'd need "<data-source
name='ds1'", but I have no specific knowledge to support my guess...
----- Original Message -----
From: "Arkadiusz Janowski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 9:15 AM
Subject: Several Data-Sources in struts-config.xml
Hi All,
how can I define more than one data-source for one struts-application?
I want to read data from two separate databases in one application.
I tried it this way:
<!-- ========== Data Source Configuration
=============================== -->
<data-sources>
<ds1
description="Data Source Description"
driverClass="org.gjt.mm.mysql.Driver"
password="*"
url="jdbc:mysql://localhost:3306/develop"
user="*" />
<ds2.... />
</data-sources>
the Java-Coding to find the data-source was:
dataSource1 = servlet.findDataSource( "ds1" );
dataSource2 = servlet.findDataSource( "ds2" );
But it did not work. Do you have an idea?
Thanks
Arkadiusz