[jboss-jira] [JBoss JIRA] Commented: (JBAS-6942) Expose a testConnection operation via JMX
Jesper Pedersen (JIRA)
jira-events at lists.jboss.org
Tue Jun 2 12:39:56 EDT 2009
[ https://jira.jboss.org/jira/browse/JBAS-6942?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12470276#action_12470276 ]
Jesper Pedersen commented on JBAS-6942:
---------------------------------------
Method is on JBossManagedConnectionPoolMBean
boolean testConnection()
It is exposed through @ManagedOperation also.
> 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
More information about the jboss-jira
mailing list