Java JMS API vs. RAC FCF features
Hello,
I have a JAVA application with queue consumer using the JMS API (JMS text message is the queue payload). On the other hand, I'd like to take advantage of the FCF: to use UCP with FCF enabled as the data source. When the physical connection to the DB fails, I'd like to reconnect and reestablish the queue consumer functionality. But I don't know, how to invent the JDBC connection is broken? In the JMS API I have only javax.jms.QueueConnection (or oracle.jms.AQjmsConnection actually). From that object, I don't have access to the Connection object. The FCF standard way to verify the connection is:
((oracle.ucp.jdbc.ValidConnection)conn).isValid()
But this may be done with conn as Connection object. How can I do connection validation having AQjmsConnection object only?
Any help appreciated, thanks in advance.