If you register with the Timer service using a KEY, then you must specify
the KEY on the unregister request:
Here is an example:
$ STAF local TIMER REGISTER TYPE heartbeat FREQUENCY 60000 KEY heartbeat
Response
--------
$ STAF local TIMER LIST TIMERS LONG
Response
--------
[
{
Type : HEARTBEAT
Machine : local://local
Notify By : Handle
Notifiee : 27
Key : HEARTBEAT
Last Fired Date-Time : <None>
Frequency : 60000
Priority : 5
Unregister On No Path : global
Unregister On No Handle: global
}
]
$ STAF local TIMER UNREGISTER TYPE heartbeat MACHINE local://local HANDLE
27
Error submitting request, RC: 48
Additional info
---------------
The TYPE specified does not exist for the specified machine and handle
number/name (and key if specified)
$ STAF local TIMER UNREGISTER TYPE heartbeat MACHINE local://local HANDLE
27 KEY heartbeat
Response
--------
$ STAF local TIMER LIST TIMERS LONG
Response
--------
David Bender
STAF/STAX Development
8-1268 (512-838-1268)
IBM Austin Bldg. 903-5B002
Internet: [EMAIL PROTECTED]
Harsha <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
02/07/2008 12:57 AM
To
[email protected]
cc
Subject
[staf-users] unable to explicitly unregister a timer entry
Hi All
For the first time I am using the STAF timer plugin. I was able to plug it
successfully in to the STAF runarea.
the timer service is also getting listed in the service list of the STAF
instance that is running.
However I am not able to explicity unregister a timer entry.
Instead I see the following error message. The time documenation for
UNREGISTER event says:
The result buffer will contain an error message if an error occurred and
will be empty otherwise.
I am obfuscated that:
Am I using the right command syntax to unregister a timer?
or the way I have plugged the Timer service is not proper?
or if the STAF Timer plug-in itself has defect (which I doubt)?
help me overcome this obstacle, please.
-- STAF, plug-in INFO---
STAFProc version 3.2.3 initialized
Timer Service, Version 3.0.1
--- Command History----
E:\>staf local service list
Response
--------
Name Library Executable
-------- ---------- ------------------------------------
DELAY <Internal> <None>
DIAG <Internal> <None>
ECHO <Internal> <None>
EVENT JSTAF E:/STAF/services/stax/STAFEvent.jar
FS <Internal> <None>
HANDLE <Internal> <None>
HELP <Internal> <None>
LOG STAFLog <None>
MISC <Internal> <None>
PING <Internal> <None>
PROCESS <Internal> <None>
QUEUE <Internal> <None>
SEM <Internal> <None>
SERVICE <Internal> <None>
SHUTDOWN <Internal> <None>
STAX JSTAF E:/STAF/services/stax/STAX.jar
TIMER JSTAF E:/STAF/services/timer/STAFTimer.jar
TRACE <Internal> <None>
TRUST <Internal> <None>
VAR <Internal> <None>
E:\>staf local TIMER REGISTER TYPE heartbeat FREQUENCY 60000 KEY
heartbeat
Response
--------
E:\>staf local TIMER list TIMERS LONG
Response
--------
[
{
Type : HEARTBEAT
Machine : local://local
Notify By : Handle
Notifiee : 88
Key : HEARTBEAT
Last Fired Date-Time : <None>
Frequency : 60000
Priority : 5
Unregister On No Path : global
Unregister On No Handle: global
}
]
E:\>staf local TIMER UNREGISTER TYPE heartbeat MACHINE local://local
HANDLE 88
Error submitting request, RC: 48
Additional info
---------------
The TYPE specified does not exist for the specified machine and handle
number/na
me (and key if specified)
E:\>staf local TIMER list TIMERS LONG
Response
--------
[
{
Type : HEARTBEAT
Machine : local://local
Notify By : Handle
Notifiee : 88
Key : HEARTBEAT
Last Fired Date-Time : <None>
Frequency : 60000
Priority : 5
Unregister On No Path : global
Unregister On No Handle: global
}
]
E:\>staf local timer unregister type HEARTBEAT key HEARTBEAT
Error submitting request, RC: 48
Additional info
---------------
The TYPE specified does not exist for the specified machine and handle
number/na
me (and key if specified)
E:\>staf local TIMER list TIMERS LONG
Response
--------
[
{
Type : HEARTBEAT
Machine : local://local
Notify By : Handle
Notifiee : 88
Key : HEARTBEAT
Last Fired Date-Time : <None>
Frequency : 60000
Priority : 5
Unregister On No Path : global
Unregister On No Handle: global
}
]
E:\>staf local timer unregister type HEARTBEAT
Error submitting request, RC: 48
Additional info
---------------
The TYPE specified does not exist for the specified machine and handle
number/na
me (and key if specified)
--
Cheers!!
Harsha Reddy
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users