dev@glassfish.java.net

Re: Activating my monitoring module

From: Jennifer Chou <jennifer.chou_at_oracle.com>
Date: Fri, 07 Jan 2011 10:46:28 -0500

On 1/7/2011 9:56 AM, Lee Chuk Munn wrote:
> Hi
>
> I've written some probes and the ModuleBootstrap like so
>
> @Service(name="xmppcontainer-jmx")
> @Scoped(Singleton.class)
> public class XMPPContainerJMXimplements PostConstruct {
>
> public void postConstruct() {
> StatsProviderManager.register(...)
> }
>
> 1. How does this get loaded?
>
> 2. Do you only publish events when the listeners are loaded?
Correct. When there is probe listener registered for a probe, then the
probe event will get fired.

>
> Thanks