JBoss Community

Re: JNDI lookup fails in load-on-startup servlet Jboss as7

created by Wolf-Dieter Fink in JNDI and Naming - View the full discussion

You should use injection instead of a JNDI this will add the correct dependencies.

@Resource (mappedName="java:jboss/datasources/Test")
private DataSource ds;

 

See this thread http://community.jboss.org/thread/175196

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community