users@glassfish.java.net

Re: What is "Wrap JDBC Objects"

From: <glassfish_at_javadesktop.org>
Date: Mon, 28 Apr 2008 11:21:31 PDT

According to JDBC Spec, DataSource.getConnection() and obtaining connection via other objects like statement, preparedStatement.getConnection() should be same.

GlassFish always wraps connection by design, but does not wrap others like statement, preparedStatement. Because of this, statement.getConnection() will return the physical connection rather than the one provided by GlassFish.

wrap-jdbc-objects=true will make sure that statement.getConnection will be the same as DataSource.getConnection()
[Message sent by forum member 'jr158900' (jr158900)]

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