-
1. Re: WrappedConnectionJDK6
peterj Jul 7, 2011 10:32 AM (in response to impio)Here is the declaration of WrappedConnectionJDK6:
package org.jboss.resource.adapter.jdbc.jdk6;
...
import org.jboss.resource.adapter.jdbc.WrappedConnection;
...
public class WrappedConnectionJDK6 extends WrappedConnection
And here is WrappedConnection:
package org.jboss.resource.adapter.jdbc;
...
import java.sql.Connection;
...
public abstract class WrappedConnection extends JBossWrapper implements Connection
You do know that java.sql.Connection is an interface, right? And as you can see WrappedConnectionJDK6 implements java.sql.Connection.
-
2. Re: WrappedConnectionJDK6
impio Jul 7, 2011 10:38 AM (in response to peterj)Yes, sorry if I wasn't accurate enough.
My problem is that to use oracle AQ I need the OracleConnection, which is the underlying one. Using spring jmstemplate and trying to reach an oracle AQ seems pretty hard due to this issue.
Thanks for the reply
-
3. Re: WrappedConnectionJDK6
jaikiran Jul 9, 2011 10:41 AM (in response to impio)See "How to retrieve the underlying Oracle connection object?" section in this wiki http://community.jboss.org/wiki/SetUpAOracleDatasource
-
4. Re: WrappedConnectionJDK6
pi4630 Sep 1, 2011 6:12 AM (in response to jaikiran)Yes, but it is not explained where WrappedConnection does come from or, to be more precise, where WrappedConnectionJDK6 comes from. How is the class resolved? Which JAR do I need? (Using JBoss-6.0.0.-Final).
In debug mode, I see it, i.e.
{code}
OracleConnection oc = (OracleConnection) preparedStatement.getConnection();
{code}
When I inspect preparedStatement.getConnection(), this has =WrappedConnectionJDK6. By accessing WrappedConnectionJDK6, I could access WrappedConnection, since it is inherited, but I can't use the class, as the import doesn't get resolved.
thx
-
5. Re: WrappedConnectionJDK6
jaikiran Sep 1, 2011 9:37 AM (in response to pi4630)I don't have my workspace in front of me, so I can't tell you about the jar containing this class. But you can use Tattletale http://www.jboss.org/tattletale to generate a report against your JBOSS_HOME/common/lib and JBOSS_HOME/lib jars to find out which jar contains that class.
-
6. Re: WrappedConnectionJDK6
pi4630 Sep 2, 2011 3:09 AM (in response to jaikiran)Thanks Jaikiran, that made me aware of another goodie JBoss Project
The JAR containing WrappedConnectionJDK6 is jboss-common-jdbc-wrapper.jar and it is located in $JBOSS_HOME/common/lib as of jboss-6.0.0.Final.