User: schaefera
Date: 01/05/30 22:45:33
Modified: src/docs howtotimer.xml
Log:
Fixed a bug with the return value of the NotificationListener.handleNotification()
and the Constant (ONE_MINUTE) which was set wrongly to ONE_HOUR thanx to
the support of Alex McClennan.
Revision Changes Path
1.4 +2 -8 manual/src/docs/howtotimer.xml
Index: howtotimer.xml
===================================================================
RCS file: /cvsroot/jboss/manual/src/docs/howtotimer.xml,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- howtotimer.xml 2001/05/20 20:33:01 1.3
+++ howtotimer.xml 2001/05/31 05:45:33 1.4
@@ -58,12 +58,6 @@
Initialize and start the timer service
<programlisting>
lServer.invoke(
- lTimer.getObjectName(),
- "init",
- new Object[] {},
- new String[] {}
- );
- lServer.invoke(
lTimer.getObjectName(),
"start",
new Object[] {},
@@ -137,7 +131,7 @@
public class Listener
implements NotificationListener
{
- public handleNotification(
+ public void handleNotification(
Notification pNotification,
Object pHandback
) {
@@ -154,7 +148,7 @@
this time the Listener.handleNotification() get called.
</para>
<programlisting>
- Date lNext = new Date( new Date().getTime() + Timer.ONE_HOUR );
+ Date lNext = new Date( new Date().getTime() + Timer.ONE_MINUTE );
Integer lOneMinuteTimer = lServer.invoke(
lTimer.getObjectName(),
"addNotification",
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-development