Hello Jason,

remove jndi-name from ejb-jar. It's not allowed according the dtd. And add the 
follwing to jboss.xml
<resource-ref>
   <res-ref-name>jndi/applicationDS</res-ref-name>
   <jndi-name>java:/MyCoolDS</jndi-name>
</resource-ref>

Thursday, July 04, 2002, 10:36:39 AM, you wrote:

JU> Hello all,

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

JU> The JNDIView for the datasource is:

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


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

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


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

JU> Can anyone help me ?


JU> TIA



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



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

-- 
Best regards,
 Alex Loubyansky




-------------------------------------------------------
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