To have the service loaded, something else that is loaded needs to
reference it, or it needs to implement the org.glassfish.api.Startup
interface, or you can put the module into the modules/autostart directory.
Tom
On 1/7/2011 8: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?
>
> Thanks