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]

Reply via email to