users@glassfish.java.net

Re: Spring,Glassfish , JNDI and Datasources

From: <glassfish_at_javadesktop.org>
Date: Wed, 19 Mar 2008 01:14:29 PST

Having played around, I think that's exactly the issue - although in another app I'm using the following code:

Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("java:comp/env");

DataSource portal = (DataSource)
envCtx.lookup("jdbc/PortalDb");

and it works perfectly... In this app, however, I've removed that and seem to be making progress...
[Message sent by forum member 'phunni' (phunni)]

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