users@glassfish.java.net

Re: JNDI resource lookup error in custom realm

From: <glassfish_at_javadesktop.org>
Date: Fri, 26 Jun 2009 07:09:14 PDT

Instead of using connectorRuntime (which is not supposed to be used by applications, undocumented), use the documented way :

http://docs.sun.com/app/docs/doc/819-3672/beamu?a=view

eitther by creating a resource that has a suffix as "__nontx" in jndi-name

or

com.sun.appserv.jdbc.DataSource ds=
   (com.sun.appserv.jdbc.DataSource)context.lookup("dataSource");
ds.getNonTxConnection();
[Message sent by forum member 'jr158900' (jr158900)]

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