1 Reply Latest reply on Oct 24, 2001 11:33 AM by Mark Brooks

    basic jndi problem

    Mark Brooks Newbie

      Thanks in advance for helping with a newbie question. I've been through the docs, but must be missing something

      Using JBoss 2.4.3 my JDBC Minerva Connection pool works fine and I can obtain and release pooled connections with my EJB doing a direct lookup like this:

      Object ref = jndiContext.lookup("java:/MinervaDS");

      However, when I try to resolve JNDI Names using a resource ref (so I can do a lookup for "java:comp/env/jdbc/MinervaDS") I have trouble.

      My ejb-jar.xml includes this:


      <res-type> org.jboss.pool.connector.jdbc.JDBCDataSource

      (I also tried res-type of javax.sql.DataSource)

      and my jboss.xml has this entry:


      But this fails and I get this:

      javax.naming.NameNotFoundException: jdbc not bound

      Can someone spot my error or point me in the right direction? Thanks again!