[jboss-user] [JNDI/Naming/Network] - Re: Data Source JNDI lookup fails in a WAR

avyo do-not-reply at jboss.com
Fri Jul 11 11:55:00 EDT 2008


Thanks jaikiran

The spring related code is:

  | org.springframework.jndi.JndiTemplate context = new org.springframework.jndi.JndiTemplate();
  | context.lookup("java:TestDB");
  | 

I already tried the InitialContext but it didn't work, I got a null.

BTW - it is working just fine in an EAR deploy, and I can get some other java:xxxx objects from the JNDI with the same code, it's very frustrating.

It have to be something with the differences between the EAR and WAR deploying but I didn't figure out what.

Thanks. 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163907#4163907

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4163907



More information about the jboss-user mailing list