Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Support for wrapped connections in AQ JMS

Magnus WoodhouseMay 19 2025

kind of a repeat of the 2006 forum post: https://forums.oracle.com/ords/apexds/post/support-for-oracle-jdbc-oracleconnectionwrapper-2482

Tried to make use of the new implementation of getContext in the AQjmsConnectionFactory (Great seeing some love for jms 2.0 btw )
but hitting a snag grabbing a connection as the Datasource wraps the Connection object, giving the error:
class io.agroal.pool.wrapper.ConnectionWrapper cannot be cast to class oracle.jdbc.internal.OracleConnection

would it be possible to use the unwrap function to grab an OracleConnection instead of using casts?

Comments
Post Details
Added on May 19 2025
0 comments
45 views