hi all, one thing I like about JMX is the built-in Notification System.
for instance, I, like as component to do the following: ObjectName timer = new ObjectName( "service:name=timer" ); MBeanServer mbeanServer = /* get it from somewhere */ /* this is the price of the micro kernel :-( */ /* register an special notification, that is scheduled ... */ Integer notId = (Integer )server.invoke( timer, "addNotification", new Object[] { "timer.notification", "bla bla", null, new Date( System.currentTimeMillis( ) ), new Long( Timer.ONE_HOUR ) }, new String[ ] { String.class.getName( ), String.class.getName( ), Object.class.getName( ), Date.class.getName( ), Long.TYPE } ); the only question that comes to my mind here is how to check which Notifications already exists (perhaps that's a lack of my understanding) - it would be handy to define a notification only once..... mbeanServer.addNotificationListener( timer, receiver, new TimerFilter( notId ), null ); * what do you think about such a notification system? surely one could easily write a Service or Component that implements the same thing, but I think the value of having something like that implemented in the core, (notifications are a primitve type in the JMX Architecture (like Operations ) ), is you can use a standardized way to get certain notifications (in this case timing calls). although the thing is quite verbose (because of the "micro kernel" design pattern), it is quite handy I think. perhaps I am missing something completly. btw: is there some excalibur/merlin component that implements a kind of scheduling/timing component, as I would need one, and I don't want to implement something that is already there and implemented by guru's like you ;-). thanks -- Jakob --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]