Here is the declaration of WrappedConnectionJDK6:
public class WrappedConnectionJDK6 extends WrappedConnection
And here is WrappedConnection:
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.
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
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.
OracleConnection oc = (OracleConnection) preparedStatement.getConnection();
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.
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.
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.