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
|
- Re: Several Data-Sources in struts-config.xml Arkadiusz Janowski
- Re: Several Data-Sources in struts-config.xml David Corbin
- RE: Several Data-Sources in struts-config.xml Geddes, Mark (ANTS)
- Re: Several Data-Sources in struts-config.xml Arkadiusz Janowski