0 Replies Latest reply on Sep 18, 2007 5:06 AM by backo

    Configure Application on Jboss to run with multiple database

    backo

      Hello,
      I need to configure an application to run on JBoss 4.0.5.GA with multiple databases. In the -ds.xml file I set up datasource for each database. The application is using EJB3 and I set up multiple persistence units in the persistence.xml. But when I run the application and try to obtain data from another database I get an error message that the table does not exists. After creating the same table in the first database everything runs fine. So it seams that there is no connection to the second database. I suppose I have to configure the standardjbosscmp-jdbc.xml to run with multiple datasources but I didn't find any examples how to do this.
      Any help will be appreciated.