Author |
Message
|
matuwe |
Posted: Tue Jun 07, 2011 8:01 am Post subject: file output NODE ARCHIVE OPTIONS |
|
|
 Master
Joined: 05 Dec 2007 Posts: 296
|
hI IS THERE ANYWAY NOT TO ARCHIVE USING FILE OUTPUT NODE??
I DO NOT NEED TO STORE THE FILE |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jun 07, 2011 8:19 am Post subject: Re: file output NODE ARCHIVE OPTIONS |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
matuwe wrote: |
hI IS THERE ANYWAY NOT TO ARCHIVE USING FILE OUTPUT NODE?? |
Use one of the non-archive options?
matuwe wrote: |
I DO NOT NEED TO STORE THE FILE |
But you do need to get that caps lock key fixed!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Jun 07, 2011 8:27 am Post subject: Re: file output NODE ARCHIVE OPTIONS |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
Vitor wrote: |
Use one of the non-archive options? |
Such as DailyRollingFileAppender. (sic)
Vitor wrote: |
But you do need to get that caps lock key fixed! |
Yes. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Jun 07, 2011 9:14 am Post subject: Re: file output NODE ARCHIVE OPTIONS |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
lancelotlinc wrote: |
Vitor wrote: |
Use one of the non-archive options? |
Such as DailyRollingFileAppender. (sic) |
Or the option on the FileOutput node to delete existing files. |
|
Back to top |
|
 |
zpat |
Posted: Tue Jun 07, 2011 9:22 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
It would be nice to have the option to retain (archived) files for "n" days and quite easy for IBM to implement this.
Yes, I know it can be done externally but this is a right pain. |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Jun 07, 2011 10:02 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
zpat wrote: |
It would be nice to have the option to retain (archived) files for "n" days and quite easy for IBM to implement this.
Yes, I know it can be done externally but this is a right pain. |
You mean calling the JobExecutionNode and executing a little shell script that goes something like this
Code: |
#!/bin/bash
find {fileoutputnode_directory_path}/mqsiarchive -type f -mtime +3 -exec rm {} \;
|
Is a real PITA?
 _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
zpat |
Posted: Tue Jun 07, 2011 12:24 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
What version of WMB has this node?
What happens if they first develop/test on Windows then promote to AIX? |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Jun 07, 2011 12:31 pm Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Jun 07, 2011 9:18 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Remember that you are going to have to code the paths differently in the job execution node if you dev on windows and deploy on Unix.
The other (blindingly obvious) option is to use the script in a cron job.
No broker coding required. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
zpat |
Posted: Tue Jun 07, 2011 10:04 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
That's where I came in, I don't want to set up external (to the broker) cron jobs.
I also don't use unsupported support pacs as a rule. |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Jun 07, 2011 10:58 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
If you are going to use the JobExecutionNode then this is the sort of ESQL you need to use
Code: |
IF Family = 'WINDOWS' THEN
SET MQSI_Command = 'cmd /c mqsichangeflowmonitoring '||
BrokerName ||
' -e ' || ExecutionGroupLabel ||' -f ' ||
MessageFlowLabel || ' -c inactive';
ELSE
SET MQSI_Command = 'mqsichangeflowmonitoring '||
BrokerName ||
' -e ' || ExecutionGroupLabel ||' -f ' ||
MessageFlowLabel || ' -c inactive';
END IF;
SET OutputRoot.XML.message.command=MQSI_Command;
|
To differentiate between Windows & Unix/Linux hosts. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
j.f.sorge |
Posted: Tue Jun 07, 2011 11:00 pm Post subject: |
|
|
Master
Joined: 27 Feb 2008 Posts: 218
|
zpat wrote: |
I also don't use unsupported support pacs as a rule. |
Then implement a JCN containing the code to execute a shell script. _________________ IBM Certified Solution Designer - WebSphere MQ V6.0
IBM Certified Solution Developer - WebSphere Message Broker V6.0
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
zpat |
Posted: Tue Jun 07, 2011 11:26 pm Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
I could - but the whole concept of WMB, is that IBM provide useful features as standard rather than having to bolt them on yourself.
Generally, useful support pacs become features over time (quite often with incompatible differences though). |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Jun 08, 2011 4:28 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
zpat wrote: |
I also don't use unsupported support pacs as a rule. ... the whole concept of WMB, is that IBM provide useful features as standard rather than having to bolt them on yourself. |
Amen to that , Brother. _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
|