There seem to be some bits missing:
<resource-ref>
<description>Default data source</description>
<res-ref-name>jdbc/Databasename</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Dave Smith
Senior Team Leader
Aristocrat Technologies Australia Pty Ltd
mailto:[EMAIL PROTECTED]
-----Original Message-----
From: Vaughn Vernon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 19 July 2000 9:59
To: jBoss
Subject: [jBoss-User] Mapping jdbc/Databasename into Stateless
SessionBean not working
Hi. I'm trying to access my database from within a stateless session bean.
However, the:
ctx.lookup("jdbc/Databasename")
is throwing an exception saying "jdbc not bound". So I then tried:
ctx.lookup("java:comp/env/jdbc/Databasename")
and got the same exception or a null value. I've got my database hooked up
in jboss.conf; that's good. I also tried the following in my jboss.xml:
<resource-ref>
<res-ref-name>Databasename</res-ref-name>
<resource-name>jdbc/Databasename</resource-name>
</resource-ref>
I'm shoot'n in the dark here. Usually I just get this stuff mapped in for
me. What do I need to do with jboss? Could you provide a few code snippets?
Thanks,
Vaughn
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]