* Where does this code lie (web /ejb component) ?
* There could be some exceptions in server.log. Can you post them ?
* I am assuming your lookup is always physical (ie., eg : ic.lookup("jdbc/resource") and not ic.lookup("java:comp/env/jdbc/resource")
* Also, what happens if the method getJndiContext() always returns "new InitialContext()" ?
If you have a reproducible test case that you can attach, that would be helpful.
[Message sent by forum member 'jr158900' (jr158900)]
http://forums.java.net/jive/thread.jspa?messageID=318393