0 Replies Latest reply on May 19, 2005 3:45 PM by morenito9000

    Two DataSources

    morenito9000 Newbie

      Hi all,
      I'm confused about how I can use two DataSources in my application.

      I access the first DataSource (a PostgresDB) using Entity Beans
      (for db changes) and Stateless Session Bean + DAO (for db readings).

      In /conf/standardjbosscmp-jdbc.xml file I put
      configurations of my PostgresDB (inside section).

      In jboss.xml file I declare that my beans uses PostgresDB
      (inside <resource-ref> section).

      The question is:
      If I need (I have) to write a NEW Stateless Session Bean that access
      an OracleDB DataSource can I add another section
      inside standardjbosscmp-jdbc.xml file (and refer to this NEW
      section in jboss.xml file) ?

      Many thanks in advance for any help
      Moreno