As David said a <stafcmd> and a <process> element can only be submitted
via the STAX job's handle. You cannot create a handle and use it to
submit a STAF service request via a <stafcmd> or <process> element.
If you really need to receive messages on a handle's queue within a STAX
job, then see 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. It
shows a STAX job that demonstrates how to create your own STAF handle
within a STAX job and use it's queue to get messages (e.g. that are being
sent via your Python program).
Note that you should not use the STAX job handle's queue as that will
interfere with the use of the qaueue by the STAX service as described in
the "Concepts" section, sub-section "Queues".
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
dudeja.ra...@gmail.com
01/30/2009 11:49 AM
To
David Bender/Austin/i...@ibmus
cc
staf-users@lists.sourceforge.net
Subject
Re: [staf-users] Unable to use Static Handle with the consecutive commands
in a STAX job file
>Correct, you cannot use a static handle for <stafcmd> elements in a STAX
job. If you want to queue messages to a process, then the >recommended
method is to use the <process-action> element .
But, what if I want to create only one process and queue it the multiple
messages one by one, as REQUEST which this process executes and sends back
the RESPONSE. Based on this response I get back in XML job, I decide to
send another REQUEST. In this scenario the <process-action> does not fit
appropriately as it cannot be called independently and can only be called
with <process> element. Or, I decide to send all REQUESTS in one chunk
using <process-action> but this is certainly I'm not trying to achieve.
As you can see in my previous mail, I'm intending to run only a single
instance of Python (via STDIN python program). And, in future I also wish
to achieve the same functionality on remote test machine.
My Python program just works fine. It can register itself with the static
handle, send and receive messages on queue using the same static handle.
Its just the XML that's causing these problems.
Has there been any implementation lately using this scenario.?
Thanks.
Rajat
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users