ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » file output NODE ARCHIVE OPTIONS

Post new topic  Reply to topic
 file output NODE ARCHIVE OPTIONS « View previous topic :: View next topic » 
Author Message
matuwe
PostPosted: Tue Jun 07, 2011 8:01 am    Post subject: file output NODE ARCHIVE OPTIONS Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Tue Jun 07, 2011 8:19 am    Post subject: Re: file output NODE ARCHIVE OPTIONS Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Tue Jun 07, 2011 8:27 am    Post subject: Re: file output NODE ARCHIVE OPTIONS Reply with quote

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
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Tue Jun 07, 2011 9:14 am    Post subject: Re: file output NODE ARCHIVE OPTIONS Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Tue Jun 07, 2011 9:22 am    Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Tue Jun 07, 2011 10:02 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Tue Jun 07, 2011 12:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Tue Jun 07, 2011 12:31 pm    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Its a support pak:

http://www-01.ibm.com/support/docview.wss?uid=swg24017225

Applies to v6 and v7.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Tue Jun 07, 2011 9:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Tue Jun 07, 2011 10:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Tue Jun 07, 2011 10:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
j.f.sorge
PostPosted: Tue Jun 07, 2011 11:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Tue Jun 07, 2011 11:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
lancelotlinc
PostPosted: Wed Jun 08, 2011 4:28 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » file output NODE ARCHIVE OPTIONS
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.