We're using, for example, java:/OracleDS

Haven't managed to get any other option to work with JBoss

Bernhard

-----Ursprüngliche Nachricht-----
Von: Artur Jonak [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 28. Januar 2003 13:36
An: [EMAIL PROTECTED]
Betreff: [JBoss-user] Unable to obtain datasource in my session bean


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

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.


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

Reply via email to