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:
<resource-ref>
<res-ref-name>jdbc/MinervaDS</res-ref-name>
<res-type> org.jboss.pool.connector.jdbc.JDBCDataSource
</res-type>
<res-auth>Container</res-auth>
</resource-ref>
(I also tried res-type of javax.sql.DataSource)
and my jboss.xml has this entry:
<resource-ref>
<res-ref-name>jdbc/MinervaDS</res-ref-name>
<jndi-name>MinervaDS</jndi-name>
</resource-ref>
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!
problem solved, sorry for the newbie static
had to map through a resouce manager in jboss.xml