You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by Jonathan Gallimore <jo...@gmail.com> on 2018/09/05 16:43:15 UTC

Re: TOMEE-2230 exposing more details through JMX

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 <
jonathan.gallimore@gmail.com> 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
>

Re: TOMEE-2230 exposing more details through JMX

Posted by exabrial12 <ex...@gmail.com>.
Very useful! Backported to 7.0.x

https://github.com/apache/tomee/pull/166/files



--
Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Dev-f982480.html