You should not use the STAX job handle's queue as that interferes with the
use of the queue by the STAX service as described in the "Concepts"
section, sub-section "Queues", in the STAX User's Guide at
http://staf.sourceforge.net/current/STAX/staxug.html#Header_Concepts. You
can create a new STAF handle within a STAX job that you can then use to
submit a QUEUE GET WAIT request.
A sample STAX job that demonstrates how to create your own STAF handle
within a STAX job and use it's queue to get messages is provided in
section "Sample STAX Job 3 - Creating a STAF Handle and Using it's Queue"
in the STAX User's Guide at
http://staf.sourceforge.net/current/STAX/staxug.html#Header_SampleJob3.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
"Mayad AL-Saidi" <mayad.al-sa...@cmgl.ca>
11/24/2009 07:00 PM
To
<staf-users@lists.sourceforge.net>
cc
Subject
[staf-users] Queued Messages Lost
Hi All,
I have a question about the queue service. I'm trying to set up a STAX job
that would receive messages at random intervals, and process them one by
one (only one can be processed at a time). So the idea was that my message
generator would queue messages to the STAX job's handle, and it would pull
them out one by one and process them one at a time.
I start a STAX job that would wait for messages to be queued to the
process's handle.
<stafcmd name="'Waiting
for message...'">
<location>'local'</location>
<service>'QUEUE'</service>
<request>'GET WAIT'</request>
</stafcmd>
Then, from the command line (on the same machine as the STAX process), I
enter:
"STAF local QUEUE 'request1' HANDLE ### "
Where ### is the STAX job's handle. The STAX job would almost never get
the first 2 or 3 messages. After that, it only gets messages while it's
waiting (messages queued while the STAX job is processing the message get
lost).
Any ideas what I could be doing wrong here?
Thanks,
Mayad
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users