Because you haven't specifed the jndi name for the
resource manager in jboss.xml
Thanks for that, I have now got the "link ->" showing correctly.
I have still not fixed my overall problem though as I think my JBoss/EJB config knowledge is not too good.
I have an application with several CMP entity beans that I want to use the OracleDS.
Therefore I have specified defaults in jbosscmp-jdbc.xml as:
I also have a resource manager in jboss.xml to map the JNDI name to resource name:
Do I have to specify for each CMP Bean something in ejbjar.xml and/or in jbosscmp-jdbc.xml to link the CMP Bean to the specific datasource or is adding a resource-ref for each CMP Bean not required.
I can't see where the application server makes the connection between a CMP Bean and its datasource.
Thanks in advance for any help.
You do not need to configure a <resource-ref> if you have
configured it in jbosscmp-jdbc.xml
The <resource-ref> allows you to lookup("java:comp/env/jdbc/DataSoruce");
Thanks again Adrian.
I thought the resource-ref on the CMP Bean looked superfluous.
In my application I have several CMP entity beans and all but one are accessing the OracleDS and one rogue CMP bean is accessing the DefaultDS.
How does a CMP Beans know which datasource to use?
I have looked at the jbosscmp-jdbc.xml and ejbjar.xml and can't see any differences between the CMP Bean definitions.
Is there a way I can debug this problem?