1 Reply Latest reply on Jul 17, 2007 10:18 AM by Peter Johnson

    Multiple database configuration

    Yoav Al Newbie


      I have developed a webapp with EJB3, JSF and seam. it run on Jboss and i use MYSQL for my database.
      currently i have 5 different databases with 5 datasources.

      my question is how can i configure a single datasource for all 5 databases ?
      is it even possible ?


        • 1. Re: Multiple database configuration
          Peter Johnson Master

          For 5 different databases, the most you could to is place all 5 datasource declarations within the same *-ds.xml file (because the connection-url requires the database name). Like this:

           ...declaration for 1st database...
           ...declaration for 2nd database...
           ... etc ...