Hi all,
I am using JBoss-3.0.6 on Mac OS X (Tiger) with code below invoke for each message received by SLSB
Integer eventId = (Integer)this.mBeanServer.invoke( this.timer.getObjectName(), "addNotification", new Object[] { "IDoNotKnowWhatTypeIs", "", null, new Date(new Date().getTime() + Timer.ONE_MINUTE), new Long(Timer.ONE_MINUTE), new Long(2) }, new String[]{ "".getClass().getName(), "".getClass().getName(), "java.lang.Object", Date.class.getName(), Long.TYPE.getName(), Long.TYPE.getName() } // Listener this.mbeanServer.addNotificationListener( this.timer.getObjectName(), new NotificationListener { private void handleNotification(Notification notification, Object callback){ TimerNotification timerNotification = (TimerNotification)notification; System.out.println("Event generated using event ID " + timerNotification.getTimerID()); } } ) )