users@glassfish.java.net

Re: looking up datasource using java:comp/env/jdbc prefix

From: <glassfish_at_javadesktop.org>
Date: Wed, 16 Jun 2010 20:48:34 PDT

>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