You shouldn't need to be doing that yourself,
you should be using the Barrier Service:
http://wiki.jboss.org/wiki/Wiki.jsp?page=BarrierController
On Mon, 2007-07-09 at 14:42 +0100, Jonathan Halliday wrote:
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.
_______________________________________________
jboss-development mailing list
jboss-development(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-development --
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Adrian Brock
Chief Scientist
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx