>Did you mean (DataSource)new InitialContext().lookup("java:comp/env/jdbc/test") ?
Yep, that's what I meant.
>Does lookup("jdbc/test") work?
It does. But I need to make the aforementioned construct work.
[Message sent by forum member 'rojkov']
http://forums.java.net/jive/thread.jspa?messageID=474609