I have an Entity EJB deployed to JBoss-3.0.6 that has a single CMR field. In my jbosscmp-jdbc.xml file, I have the datasource and datasource-mapping attribs set to use a datasource named "java:/OracleDS". Here are the relevant sections:
...
<datasource>java:/OracleDS</datasource>
<datasource-mapping>Oracle9i</datasource-mapping>
<create-table>false</create-table>
......
<ejb-relation>
<ejb-relation-name>COMMUNITY-MEMBERS</ejb-relation-name>
<foreign-key-mapping/><ejb-relationship-role>
<ejb-relationship-role-name>MEMBERS-has-COMMUNITY</ejb-relationship-role-name>
<fk-constraint>true</fk-constraint>
<key-fields/>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>COMMUNITY-has-MEMBERS</ejb-relationship-role-name>
<key-fields>
<key-field>
<field-name>communityIdFk</field-name>
<column-name>COMMUNITYID_FK</column-name>
</key-field>
</key-fields>
</ejb-relationship-role> </ejb-relation> ...
For some reason, JBoss throws an Exception indicating that its looking for a different datasource when I make calls to the CMR based field. It seems to be using "java:/DefaultDS". Is there an additional attribute I am missing? Why would it revert to the DefaultDS when I have it configured to use "OracleDS"?
Any comments appreciated... -Billy
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: Dedicated Hosting for just $79/mo with 500 GB of bandwidth! No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user
