This content has been marked as final.
Show 2 replies
-
1. Re: JMS-112 when connecting to Oracle AQ
impio Jun 29, 2011 10:52 AM (in response to impio)Ok, simplifying, is there any way I can have a DataSource that does not provide wrapped connections? I need the class from the DS to be a java.sql.Connection. Anyone can help?
Thanks
-
2. Re: JMS-112 when connecting to Oracle AQ
msulliv1 Jun 29, 2011 12:13 PM (in response to impio)Our project uses AQ connections and we need to unwrapp the datasource connection first:
import org.jboss.resource.adapter.jdbc.WrappedConnection;
...WrappedConnection wrappedConn = (WrappedConnection)con;
OracleConnection ocon = null ;
if (wrappedConn != null)
ocon = (OracleConnection) wrappedConn.getUnderlyingConnection();..
// then use ocon for connecting to AQ
Hope that helps.