Hi,

No.  I didn't realise I needed to set it as a dependency as the datasource
is deployed seperately, I will give it a go.
Currently, I included the datasource as a resource in the
geronimo-application-client.xml, like this:

    <naming:resource-ref>
        <naming:ref-name>jdbc/DataSource</naming:ref-name>
        <naming:domain>geronimo.server</naming:domain>
        <naming:server>geronimo</naming:server>
        <naming:application>null</naming:application>
        <naming:module>console-db-pool-MDMDB2</naming:module>
        <naming:type>JCAManagedConnectionFactory</naming:type>
        <naming:name>MDMDB2</naming:name>
    </naming:resource-ref>

It's basically a straight cut and past from the usage panel.  I then
reference it in the application-client.xml, like this:

    <resource-ref>
      <description>DB2 datasource</description>
      <res-ref-name>jdbc/DataSource</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
    </resource-ref>  


So I need to put in a dependency as well?

Thanks,

John

-- 
View this message in context: 
http://www.nabble.com/DataSource%2C-JNDI-and-EJB-module-...-tf4090122s134.html#a12126274
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.

Reply via email to