Hello all,

I am trying to bind an existing ( global ) datasource to a stateful session
beans jndi context.

The JNDIView for the datasource is:

(from java: namespace )
(snip)
  +- MyCoolDS (class: org.jboss.resource.adapter.jdbc.local.LocalDataSource)


and I put this in a session beans descriptor in ejb-jar.xml

<resource-ref>
        <res-ref-name>jdbc/applicationDS</res-ref-name>
        <res-type>org.jboss.resource.adapter.jdbc.local.LocalDataSource</res-type>
        <res-auth>Container</res-auth>
        <jndi-name>java:/MyCoolDS</jndi-name>
</resource-ref>


However, it is binding not to MyCoolDS but to DefaultDS !!!!!

Can anyone help me ?


TIA



Jason Uithol
Data Technologist
DatacodeX Pty Ltd
[EMAIL PROTECTED]
http://www.datacodex.com



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Caffeinated soap. No kidding.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to