[JBOSS] DB-Connection validation

F

F. Lorenz

Hi!


My JBoss 3.0.2 is making transactions via CMP with a DB2.
From timt to time the DB is switched into a suspendmode with an
external tool. Thereby JBoss loses the connection to the DB. The next
query then fails due to the invalid connection.

How to configure the JBoss to validate the connection and, if necessary,
to open a new one before starting a sql-query?

Regards
Frank
 
A

Arnaud Berger

Hi,

I think that this :

<valid-connection-sql>SELECT 1 FROM yourTable</valid-connection-sql>

can be used in the datasource element of the XML.

Regards,

Arnaud
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top