No, there's not currently a way to have a sub-job wait for the STAX 
Monitor to start monitoring it before the job starts execution.

Note that a message logged in the STAX Job User Log is persistent, unlike 
a message sent to the STAX Monitor which is only displayed if the job is 
currently being monitored by the STAX Monitor running on any machine(s). 
Also, the number of messages displayed in the "Messages" table in the STAX 
Monitor is limited by default to the most recent 200 messages (though you 
can change this via the STAX Monitor Properties).  And, when you stop 
monitoring a STAX job, any messages sent while the job isn't being 
monitored are not displayed.  So, messages sent only to the STAX Monitor 
can easily be "lost".  If it is important that you see messages for your 
sub-job, then you should consider logging the messages to the STAX Job 
User Log as messages logged in the STAX Job User Log are persistent.

For example, if you're using the <message> element to send messages to the 
STAX Monitor, you can add the log attribute to it to also log it in the 
STAX Job User Log.  For example:     <message log="1">'This is my 
message</message>

Note that the log attribute value defaults to the STAXLogMessage variable 
whose value will default to 0 (false).  But you can set STAXLogMesasage = 
1 to turn on logging (for the whole job or just within a function or 
block, etc). 

Then you can view your STAX Job User Log for the sub-job and your messages 
will always be there (no matter whether you're monitoring the sub-job or 
not).

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   Strösser, Bodo <bodo.stroes...@ts.fujitsu.com>
To:     "staf-users@lists.sourceforge.net" 
<staf-users@lists.sourceforge.net>
Cc:     Sharon Lucas/Austin/IBM@IBMUS
Date:   08/02/2011 12:16 PM
Subject:        Startig STAX SubJobs in <paralleliterate>^



Hi Sharon,
 
my STAX Job is starting 4 SubJobs from a <paralleliterate> using <job 
name=”xyz” monitor=”True”>.
 
Unfortunately, the monitor windows for the SubJobs are missing the first 
few messages from the
SubJobs. Surely, I could insert a delay at the beginning of the Jobs, but 
that is not a sane method
I think.
It would be better to make the Jobs wait for the monitor to come up. Is 
there a way to do this?
 
Bodo 

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to