0 Replies Latest reply on Feb 3, 2004 11:09 AM by ryandeacon

    How to use 2 databases in one Webservice?

    ryandeacon

      I'm sorry if this is a lame question but we are running JBoss/Tomcat with
      MySQL and have a webservice called certservice.wsr. We do want to offer this service to multiple clients and therefore use multiple databases so we can create an extra entry in the jboss-net-ds.xml file but how do we implement the java code to properly use the right data source. It seems as though our approch may be wrong but we use a properties file which just calls the one datasource. Does anyone have some insight on how this should be properly implemented? I guess one option is to make an entirely different wsr but that seems hugely inefficient. Thanks in advance.