Re: [staf-users] Type of MESSAGE in QUEUE

2011-06-29 Thread Sharon Lucas
You can poll to get messages periodically using the QUEUE service's GET request so I do not understand your reasoning. Better yet, using the QUEUE service's GET WAIT request, you don't have to "poll" to see if there are any messages on the queue as it will return when there are messages on the

Re: [staf-users] Print Unicode from STAX

2011-06-29 Thread Strösser , Bodo
Some more info: If the info I found is right, in a multithreaded Java application all instances of PythonInterpreter share the same sys object. So what I observed is normal behavior. But it also means, all STAX jobs share the same sys object. This said, probably using “reload(sys)” while other

Re: [staf-users] Type of MESSAGE in QUEUE

2011-06-29 Thread Sharon Lucas
To "get" messages off a queue you should be using the QUEUE service's GET request. If the queue is empty and you did not specify the WAIT option on your QUEUE GET request, it returns STAF RC 29 (No Queue Element) which is defined as follows: C:\>STAF local HELP ERROR 29 Response Desc

Re: [staf-users] Type of MESSAGE in QUEUE

2011-06-29 Thread Sharon Lucas
To get messages off a queue, you should use the QUEUE service's GET request (with the ALL option if you want to get all messages off the queue), not the LIST and DELETE requests. Note that between the time you submit a QUEUE LIST request and a QUEUE DELETE request, additional messages may have

Re: [staf-users] Type of MESSAGE in QUEUE

2011-06-29 Thread Sharon Lucas
See the description of the QUEUE service's QUEUE request in section "8.13.2 QUEUE" in the STAF User's Guide at http://staf.sourceforge.net/current/STAFUG.htm#HDRQUEUESRV. It also provides an example of using the TYPE option. STAF local QUEUE QUEUE NAME "MyApplication" TYPE "info" MESSAGE "START

[staf-users] Type of MESSAGE in QUEUE

2011-06-29 Thread Dedhia, Hardik
Hello, I wanted to change the type of message that I am putting in the Queue using the Queue Service' Queue request. Staf local QUEUE QUEUE MESSAGE START NAME MyApplication This message is delivered as type none by default. How can I change this? To say Type Info. Thanks, Ha