Hi

This still needs some tests, but here's a first shot:
https://github.com/apache/tomee/pull/160

The idea here is that connection factories, resource adapters and general
resources are exposed in JMX. All very much read-only, but useful for
getting a view of "what's there" through JMX, and in the case of connection
factories, getting a real-time view of the connection usage in the
connection manager.

The connection factory object exposed is
in org.apache.openejb.monitoring.ConnectionFactoryMonitor, while the
resource adapters and resources are introspected to find getters, and those
are exposed as attributes dynamically.

I have wired and checked the removal of the connection factory JMX MBean
when the resource is removed - I still need to do the same for the others.

Thoughts and discussion is most welcome.

Jon

On Fri, Aug 31, 2018 at 3:26 PM Jonathan Gallimore <
[email protected]> wrote:

> Hey folks
>
> I filed this ticket. The general gist is to expose more details on
> resources we create via JMX. Specifically we can fairly easily provide a
> view on both resource adapters and connection factories and the usage of
> connection pools for the connection factories.
>
> I'll code this up and propose a PR. Any thoughts are welcome.
>
> Jon
>

Reply via email to