Hi,

I would like to know how could I be notified when web server in jboss (jboss 
3.2.6) is finally started.  I have mBean which i need to be notified when 
Tomcat is started. I know that i have to register notification listener. First 
i am wondering on which service? Is it jboss.web:service=WebServer?

        ObjectName webMBean = new ObjectName("jboss.web", "service", 
"WebServer");
        mbServer.addNotificationListener(webMBean, this, null, null);

Then here comes the next question what type of notification i should listen for:

    public void handleNotification(Notification notification, Object object)
    {
        String type = notification.getType();
        if ("WHAT_IS_HERE".equals(type))
        { ......}
    }

I would be thankful if someone share experience and tell me which is the 
service and what type to filter for:)

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3870010#3870010

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3870010


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to