[
https://jira.jboss.org/jira/browse/JBAS-6942?page=com.atlassian.jira.plug...
]
Ian Springer commented on JBAS-6942:
------------------------------------
Jesper, which MBean exposes the new operation and what is the name of the operation?
Also, did you expose the functionality via the Profile Service as well, or only JMX?
Thanks,
Ian
Expose a testConnection operation via JMX
-----------------------------------------
Key: JBAS-6942
URL:
https://jira.jboss.org/jira/browse/JBAS-6942
Project: JBoss Application Server
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: JCA service
Reporter: Heiko W. Rupp
Assignee: Jesper Pedersen
Fix For: JBossAS-5.2.0.Beta1
Hi,
would it be possible to expose a "tesConnection" method to JMX and/or the
profile service, that basically tries to get a connection with the backend database and
returns true if this was successful. The connection itself could directly be closed or put
back into the pool. Obtaining the connection should always try to really hit the database
and not just get a connection from the pool (unless the valid connection checking
mechanism is used, which may or may not be configured on a datasource).
Such an operation could be very handy for tools like Jopr.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira