Discussion:
[jboss-user] [JBoss Remoting] - How to detect when database connection fail
Alexandre Loureiro
2012-12-28 12:28:44 UTC
Permalink
Alexandre Loureiro [https://community.jboss.org/people/recanto] created the discussion

"How to detect when database connection fail"

To view the discussion, visit: https://community.jboss.org/message/785204#785204

--------------------------------------------------------------
Hi all,
is it possible to detect when the connection between application and database fails (for any reason, like network problem or max users exceeded) ?

I implemented the ConnectionValidator (as says on http://docs.jboss.org/jbossremoting/docs/guide/2.2/html_single/index.html#chapter-connection-failure Chapter 9 Doc) but without success. There is some other configurations to do (or another path to follow instead ConnectionValidator) ?

Thanks.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/785204#785204]

Start a new discussion in JBoss Remoting at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050]
Ron Sigal
2013-01-15 02:26:03 UTC
Permalink
Ron Sigal [https://community.jboss.org/people/ron_sigal] created the discussion

"Re: How to detect when database connection fail"

To view the discussion, visit: https://community.jboss.org/message/791835#791835

--------------------------------------------------------------
Hi Alexandre,

The ConnectionValidator monitors the health of a connection on the client side.   Remoting sends invocations from the client to the server and returns the results.  It doesn't handle connections between the server and a database.  I suggest you post the question on the AS forum: https://community.jboss.org/community/jbossas https://community.jboss.org/en/jbossas.

-Ron
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/791835#791835]

Start a new discussion in JBoss Remoting at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2050]
Loading...