This content has been marked as final.
Show 2 replies
-
1. Re: Jboss managed connection and ClassCastException
ricardoarguello Feb 22, 2005 12:25 PM (in response to thenrick)You need to cast the Connection to org.jboss.resource.adapter.jdbc.WrappedConnection fist.
Then invoke the getUnderlyingConnection() method to obtain the original OracleConnection.
If you don't want to import org.jboss.* classes into your project, you could use the Reflection API to invoke the "getUnderlyingConnection" method.
Ricardo -
2. Re: Jboss managed connection and ClassCastException
ricardoarguello Feb 22, 2005 12:53 PM (in response to thenrick)You could find an example for obtaining the original Connection using the Reflection API here (Spring Framework's CVS):
http://cvs.sourceforge.net/viewcvs.py/springframework/spring/src/org/springframework/jdbc/support/nativejdbc/JBossNativeJdbcExtractor.java?rev=1.12&view=auto
Ricardo