Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 6.0.0.M1
    • Component/s: JCA service
    • Labels:
      None

      Description

      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.

        Gliffy Diagrams

          Issue Links

            Activity

            Hide
            jason.greene Jason Greene added a comment -

            There will not be a 5.1.1, moving to 5.2 for now

            Show
            jason.greene Jason Greene added a comment - There will not be a 5.1.1, moving to 5.2 for now
            Hide
            ips Ian Springer added a comment -

            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

            Show
            ips Ian Springer added a comment - 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
            Hide
            jesper.pedersen Jesper Pedersen added a comment -

            Method is on JBossManagedConnectionPoolMBean

            boolean testConnection()

            It is exposed through @ManagedOperation also.

            Show
            jesper.pedersen Jesper Pedersen added a comment - Method is on JBossManagedConnectionPoolMBean boolean testConnection() It is exposed through @ManagedOperation also.

              People

              • Assignee:
                jesper.pedersen Jesper Pedersen
                Reporter:
                pilhuhn Heiko Rupp
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Development