Hi,
I use JBoss 3.0.4. I have ejb app with one session. This session bean tries
to obtain a datasource and then I get exception:
javax.ejb.EJBException: Unable to obtain datasource:
java:comp/env/jdbc/Oracle; CausedByException is:
jdbc not bound
The exception is thrown when I invoke lookup("java:comp/env/jdbc/Oracle")
for datasource. I have in ejb-jar.xml the proper mapping:
<resource-ref>
<description />
<res-ref-name>jdbc/Oracle</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
and of course in jboss.xml:
<resource-ref>
<res-ref-name>jdbc/Oracle</res-ref-name>
<jndi-name>jdbc/ekms/Oracle</jndi-name>
</resource-ref>
What is the problem?
This piece of code was tested many times on different app servers like
Weblogic and Borland Ent. Server and everything works perfectly!
Regards,
Artur
___________________________________________
Artur Jonak
phone: +48 22 535 88 10
<mailto:[EMAIL PROTECTED]>
___________________________________________
-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user