As defined in the STAX User's Guide, in order to have Process Monitor information show up for a process in the STAX Monitor, you need to:
1) Use a <process> element to start a process. You're not. You're using a <stafcmd> to submit a PROCESS START request. Instead, you need to use a <process> element as David first recommended to you. I know you want to do things in your STAX job in parallel while the process is running. That's one of the reasons that David recommended using the <process-action> sub-element for your <process> element so that within the <process-action> element, you can interact with the process currently running. This way too, the STAX service will know when the process ends. 2) Optionally, may need to set a properties in the STAX Monitor regarding Process Monitor information. On the main STAX Monitor panel, select File->Properties. On the "Options" tab, you may want to update the frequency of how often the Process Monitor Information is updated for processes. The default is 60 (every minute). You may want to decrease it depending on how often you want it to check for updated Process Monitor information. Here's an example of a STAX job that uses the <process-action> element for a <process> element to interact with a process and of the Python process that it interacts with. It updates the STAX Monitor's Process Monitor information with the current status of PyInt.py and PyInt.py logs messages in the STAX Job User Log as well as sends them to the STAX Monitor's Messages panel. In addition, it uses the QUEUE service to send and receive messages between the STAX job and the Python process. I also fixed how you were doing some other things like creating handles and it also works if you run the Python process on a machine other than the STAX service machine. I suggest you run this xml job with this PyInt.py to get a better understanding of what it's doing and how it's doing it: Here's the STAX Job User Log output after running it. 20090205-18:21:12 STAX Job will receive messages using handle 1268's queue 20090205-18:21:12 The PyInt process is using handle 1269 on machine local 20090205-18:21:12 [PyInt] Waiting for a message 20090205-18:21:14 Sending message "WAIT" to PyInt 20090205-18:21:14 Waiting to receive a message 20090205-18:21:14 [PyInt] Received message "WAIT" 20090205-18:21:17 [PyInt] Sending message "OK" 20090205-18:21:17 Received message "OK" 20090205-18:21:17 Sending message "CLEAN-UP" to PyInt 20090205-18:21:17 [PyInt] Waiting for a message 20090205-18:21:18 Waiting to receive a message 20090205-18:21:18 [PyInt] Received message "CLEAN-UP" 20090205-18:21:21 [PyInt] Sending message "Clean-up Done" 20090205-18:21:21 Received message "Clean-up Done" 20090205-18:21:21 [PyInt] Complete 20090205-18:21:21 Python Process Stdout: MyTest Handle#: 1269 PyInt is receiving messages on handle 1269 STAXJobHandleNumber: 1268 STAXJobID: 99 STAXMachine: server1.austin.ibm.com STAXService: STAX Complete 20090205-18:21:21 Job Complete -------------------------------------------------------------- Sharon Lucas IBM Austin, luc...@us.ibm.com (512) 286-7313 or Tieline 363-7313 dudeja.ra...@gmail.com 02/05/2009 10:45 AM To Sharon Lucas/Austin/i...@ibmus cc staf-users@lists.sourceforge.net Subject Re: [staf-users] Fw: Unable to use Static Handle with the consecutive commands in a STAX job file Sharon, Thanks for the help and suggestions. >Note that within a STAX job you should use the <log>/<message> >elements to log messages to the STAX Job User Log and/or to send >messages to the STAX Monitor, not the STAX LOG/SEND requests. >The STAX LOG/SEND requests can be useful if your STAX job runs >a process (e.g. a Python program) and you want the process to log >messages to the STAX Job User Log and/or send messages to the >STAX Monitor. I'll keep this in mind. Also, I tried these LOG/SEND services from my Python program and with some effort I'm able to log messages to STAX Job User Log and to Message panel of Monitor. Simultaneously I'm also trying to send some messages to MONITOR service from same python program. Unfortunaltely, these messages are not being displayed inside the "Active Job Elements" where they are supposed to go. I attribute these arising problems to the design I created for interactive python program ( solely for the purpose of having single instance of python running which shall then run all my python test cases where each of these test cases is a separated python script in itself.) Well, I tried to figure out the mystery behind my Active Job Elements not being updated with messages and found that the messages are definitely passed to the handle but are not coming onto GUI (i.e. the Active Job Elements) Could Event service be of help in this situation? What other possibilities could be ? Cheers, Rajat ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users
PyInt.xml
Description: Binary data
PyInt.py
Description: Binary data
------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users