Multiple Data source in Struts-Config.xml

Hi ,I am Amit Garg and i am new to this forum....Can any one help me out with the problem that i need to have 3 data source in my struts-config file and how will my getDatasource(request) method recoganise which data source to pick and access.
[264 byte] By [AmitGarga] at [2007-10-1 15:44:05]
# 1

Hi Amit Garg,

<data-sources>

<data-source type = "org.apache.commons.dbcp.BasicDataSource" key = "DBA">

.........

</data-source>

<data-sources>

<data-source type = "org.apache.commons.dbcp.BasicDataSource" key = "AISDEV">

...........

</data-source>

</data-sources>

u just configure ur struts-config.xml file in the above manner and use the following steps in ur action servlet to retrive the DataSource object

getDatasource(request,"DBA") for accessing first datasource

getDatasource(request,"AISDEV") for accessing second datasource.

byeeeeee

madhu@tcsa at 2007-7-10 23:33:28 > top of Java-index,Enterprise & Remote Computing,AVK Portability...