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 < defaults > 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 < defaults >
section inside standardjbosscmp-jdbc.xml file (and refer to this NEW
section in jboss.xml file) ?
Many thanks in advance for any help
Moreno