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 » IBM MQ Java / JMS » File to Queue Question

Post new topic  Reply to topic
 File to Queue Question « View previous topic :: View next topic » 
Author Message
shediiwork
PostPosted: Thu Jun 09, 2005 9:57 am    Post subject: File to Queue Question Reply with quote

Acolyte

Joined: 07 Jun 2005
Posts: 52

Has anyone wrote a stand alone java application that map from files to queues and vice versa as an adapter to the WBIMB?

Shed.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Jun 09, 2005 10:00 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Yes.

It's a royal pain.

You're better off buying one.

EDIT:

Let me expound a little bit.

The painful part of the process is the infrastructure, not the basics of the code.

Such a tool needs to deal with file systems in a relatively transactional manner - and most file systems are not inherently transactional. Some file systems (Windows for example) will also make a file available for reading before the creator has finished writing it. So you have to jump through some hoops to make sure you don't delete an incomplete file or pass an incomplete file. And make sure that the files you are writing out are not grabbed too soon.

Such a tool usually needs a configuration that is available to at least a certain class of business user/operator, if not to "end-users". This may end up requiring a database and a set of webscreens to maintain that database. And then, if you've got a database, you may need two-phase commit with your MQ!

Such a tool certainly needs monitoring - both to ensure that it is running, and for the inevitable case when the user puts a file with the wrong permissions in the input directory.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Jun 09, 2005 10:25 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

There is a sample Java based custom input node for WMQI that listens for file arrival in a directory and then provides the messages to a flow.

The Redbook is SG24-6509 - see the web materials download for that book on the redbooks site www.redbooks.ibm.com for the source code.
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 » IBM MQ Java / JMS » File to Queue Question
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.