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

Reply via email to