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 » FileInput node duplicate file detection

Post new topic  Reply to topic
 FileInput node duplicate file detection « View previous topic :: View next topic » 
Author Message
hal
PostPosted: Thu Nov 15, 2012 12:50 pm    Post subject: FileInput node duplicate file detection Reply with quote

Acolyte

Joined: 07 Dec 2005
Posts: 67
Location: New York City, New York

I am using WebSphere Message Broker 8.0.0.1 FileInput nodes. Is there a way to prevent duplicate files from being processed without using a database?

This question was asked more than four and a half years ago for WMB 6.1 at http://www.mqseries.net/phpBB2/viewtopic.php?t=42765 Have there been any FileInput node duplicate-file-detection enhancements or non-database workarounds since then? WebSphere MQ FTE is also not an option for my company.
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu Nov 15, 2012 1:56 pm    Post subject: Re: FileInput node duplicate file detection Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

hal wrote:
This question was asked more than four and a half years ago for WMB 6.1 at http://www.mqseries.net/phpBB2/viewtopic.php?t=42765 Have there been any FileInput node duplicate-file-detection enhancements or non-database workarounds since then?




The question remains "define duplicates".
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
hal
PostPosted: Thu Nov 15, 2012 5:41 pm    Post subject: Reply with quote

Acolyte

Joined: 07 Dec 2005
Posts: 67
Location: New York City, New York

By duplicates I mean duplicate file names. For now I am not concerned with preventing duplicate records contained within differently named files from being processed. What I am really looking for is a FileInput node "Action before processing" selection similar to the "Action on successful processing" selection.

One brute force approach is to write a shell script wrapper around the file sending application. The script would check if a specific file name exists anywhere within the FileInput node directory tree. If the file name is already there, the script would flag an error and not resend the duplicate file name. Either the FileInput node "Move to Archive Subdirectory" or "Add Timestamp and Move to Archive Subdirectory" option without the "Replace duplicate archive files" selection is needed for this to work.

I neither designed nor wrote the file sending and receiving applications. Nevertheless, I have a new fourth-quarter-two-minute-warning-before-production-deployment requirement from the file sending application owners for "Middleware" to prevent duplicate file names. In a perfect world the sending and receiving applications would be written with exception handlers and duplicate record checking mechanisms.
Back to top
View user's profile Send private message Send e-mail
Esa
PostPosted: Fri Nov 16, 2012 12:49 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

You can write a preprocessor flow that adds a timestamp in the file name and writes it in the directory your business flow is listening to. That should make the filenames unique

Why is the application so sensitive about file names? Does the file name reflect a specific business object instance that should not be sent twice?

The possible solutions to your problem depend on the amount of files that are being sent and collected to the archive directories.

And what is the timescale for the uniqueness? A week, a year or from the Big Bang to the next one?

Can you query the receiving application if it already has a specific business object?
Back to top
View user's profile Send private message
zpat
PostPosted: Fri Nov 16, 2012 1:18 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

The use of files is the root of all evil.
Back to top
View user's profile Send private message
Esa
PostPosted: Fri Nov 16, 2012 9:14 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

By the way, your case would have been a perfect business case for complex event handling nodes - although they do use a database under the hoods. But the support pack seems to have disappeared. It has not been incorporated in the product (AFAIK). What happened to it? The only customer using it chose another solution?

Not that I'm missing it, just curious.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Nov 16, 2012 9:25 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Complex events got replaced by Business Events.
Back to top
View user's profile Send private message
hal
PostPosted: Fri Nov 16, 2012 2:35 pm    Post subject: Reply with quote

Acolyte

Joined: 07 Dec 2005
Posts: 67
Location: New York City, New York

Does anyone know the back story of SupportPac IA03 and why it was unbundled from WebSphere Message Broker 6.1?

In early 2008 I started to evaluate IA03, WebSphere Message Broker CEP Detector Nodes, and still have versions 6.0.0.1 and 6.1. When it mysteriously vanished from WebSphere Message Broker 7, I contacted IBM Hursley. They asked me to speak to my IBM rep who directed me to an IBM salesperson who explained that I needed to purchase a separate Business Events product.

From http://www-01.ibm.com/support/docview.wss?rs=171&uid=swg27015418&loc=en_US&cs=utf-8&lang=en
Quote:
Delivery Instructions for SupportPac IA0S: WebSphere Message Broker - CEP Detector Nodes
.Release notes

AbstractDelivery Instructions

ContentThis Service Offering is available from the IBM Research Laboratories team.

To obtain the WebSphere Message Broker CEP Detector Nodes v6.0 or v6.1 code, please contact your IBM Rep or send an email to csi@us.ibm.com.



Hal
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Sat Nov 17, 2012 5:58 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

hal wrote:
Does anyone know the back story of SupportPac IA03 and why it was unbundled from WebSphere Message Broker 6.1?


mqjeff wrote:
Complex events got replaced by Business Events


That's about as good as you're likely to get in a public forum.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » FileInput node duplicate file detection
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.