1 Reply Latest reply on Jun 17, 2004 9:23 AM by darranl

    creating more than one datasource in standardjbosscmp-jdbc.x

    sivauser

      how i can use diffrenent type of Database in jboss for creating entity beans.
      ex:
      Entity1 -> MySQL and Entity2-> Oracle

      thanks
      siva

        • 1. Re: creating more than one datasource in standardjbosscmp-jd
          darranl

          This is assuming that you are using CMP.

          You will need to deploy the entity beans with a jbosscmp-jdbc.xml deployment descriptor, within this deployment descriptor you can configure different datasources for different entity beans.

          See the dtd for more information on how to structure the file.

          If you are using BMP then each bean can just use the different JNDI name to obtain its connection.