users@glassfish.java.net

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

From: <glassfish_at_javadesktop.org>
Date: Wed, 16 Jun 2010 14:30:31 PDT

How do I make the following code work in GlassfishV3, provided I have the datasource configure and functional at jdbc/test

Datasource ds = (DataSource)new InitialContext("java:comp/env/jdbc/test");

Thanks so much!
[Message sent by forum member 'rojkov']

http://forums.java.net/jive/thread.jspa?messageID=474569