-
1. Re: getUnderlyingConnection
davidjencks Apr 18, 2003 9:46 AM (in response to eddie07)Well, it will give you the database connection from the original driver. Use it as little as possible, since it won't give you the error checking and management features of the wrapped connection. Other than this, I don't know what to say about it. If you need more info, look at the source code.
-
2. Re: getUnderlyingConnection
eddie07 Apr 22, 2003 4:43 AM (in response to eddie07)David, I already looked into the source code and found something that could help, e.g.:
JDBCStatementTestsConnectionSessionBean.java.
There is an import for org.jboss.resource.adapter.jdbc.WrappedConnection, which is used later for getUnderlyingConnection.
But WrappedConnection, is not contained in any of the jar
files which are contained in jboss (3.0.7).
jboss-jca.jar contains org.jboss.resource.adapter./... but no classes below.
I assume with the example source mentioned above I could solve my problem if I would have the corresponding jar files.
Eddie -
3. Re: getUnderlyingConnection
eddie07 Apr 22, 2003 4:22 PM (in response to eddie07)Just for the case that others have the same problem: In the meantime I found out that I have to compile the sources, then an additional jar file is created which contains the necessary class(es). Now I have an exception in LocalConnection, but I'll guess I can find out why.
Eddie