I have two jar deployed. One uses MySQL the other uses Firebird. I can make them work seperately (by changing
standardjbosscmp-jdbc.xml, standardjaws.xml and copy
& modifying -service.xml from example/jca)
Here is the head of my standardjaws.xml
java:/MySqlDS
<type-mapping>mySQL</type-mapping>
java:/FirebirdDS
<type-mapping>InterBase</type-mapping>
.....
I am assuming mysql-sevice.xml and firebird-service.xml
are fine since they can work if seperated.
Question: do I have to change standardjbosscmp-jdbc.xml
It seems to me container always picks datasource
from and it does not allow to have multiple
. Anyway to overide it and specify who
access what?
You can specify application level (as opposed to global) datasource with either the jaws.xml file or the jbosscmp-jdbc.xml file, which you put in the META-INF directory of the ejb-jar file.