Re: Can't get datasource failover working with JBoss
Posted by: Terry Ray
Date: November 08, 2004 10:55AM

Just to follow up, Adrian from JBoss posted a solution on their forum which fixed the problem. Instead of using the autoReconnect parameter on the jdbc URL, I added a check-valid-connection-sql tag inside the local-tx-datasource definition and filled it with an sql statement that would determine if my primary connection was still open. Example:

<check-valid-connection-sql>select * from my_table</check-valid-connection-sql>

This works fine!


Options: ReplyQuote

Written By
Re: Can't get datasource failover working with JBoss
November 08, 2004 10:55AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.