[jboss-dev] Re: New integration project

Jonathan Halliday jonathan.halliday at redhat.com
Mon Jul 9 09:42:37 EDT 2007


Adrian wrote:

>> org.jboss.system.server.Server;
> 
> Why?

         final NotificationFilterSupport notificationFilter 
= new NotificationFilterSupport();

notificationFilter.enableType(Server.START_NOTIFICATION_TYPE);

final ObjectName serverName = 
ObjectNameFactory.create("jboss.system:type=Server");
getServer().addNotificationListener(serverName, this, 
notificationFilter, null);

Jonathan.



More information about the jboss-development mailing list