John,
I don't know what platforms are involved in your MQ topology, but have you
looked at using reference messages for doing the 'file transfer' you need to
do?

About using MQ for ftp you will probably get the same answers in the future
than you got in the past. ;-) Somebody I know would say 'horses for courses'
and that pretty much reflects my opinion, if asked for it. IMHO, MQ has been
designed to be a reliable asynchronous messaging product, not really a tool
to do high-volume file transfers. Can you use it to move large files
reliably? Probably yes. Should you? Hmmm....  It's a little bit like 'can
you use a hammer to drive a screw into a piece of lumber?'
The same dichotomous discussion will come up if you ask if it's good to use
MQ as a database, using messageID and correlID as keys. Yes you can, no you
shouldn't would be my answer. But there are as many opinions on that as
there are stars in the sky. This is just mine.
If you HAVE to use MQ to transfer bulk data (for whatever reasons, and there
may be some), just make sure that you are very fastidious about separating
your online (request/reply) MQ infrastructure from your batch
infrastructure. This can go as far as having dedicated queue managers for
batch and online to avoid anything going black while you feed your TV
news...
BTW, TV news going black wouldn't be all too bad these days.
Cheers,
Stefan


From: "Chan, John" <[EMAIL PROTECTED]>
Reply-To: MQSeries List <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: XML blob as MQ Message
Date: Mon, 24 Feb 2003 09:36:59 -0500

Stefan,

Your comment is greatly appreciated. That's pretty much what I have in
mind.  I had used similar scheme on another project. I was hoping that
there may be new and better ways to do it.  But it sounds like the same old
two messages approach is about the best in terms of speed and feeds.  This
is a large volume application, can't affort to convert to based64 back and
forth for each message. (Want to see your TV news go black for a few
seconds while the message is being converted ?, I lose my job).   Since we
bring up the subject, any new tricks of moving more than 100 MB message
using MQ ?

By the way, what's our general feeling now a day about using MQ as ftp ?

John C

-----Original Message-----
From: Stefan Sievert [mailto:[EMAIL PROTECTED]
Sent: Friday, February 21, 2003 6:56 PM
To: [EMAIL PROTECTED]
Subject: Re: XML blob as MQ Message


In addition to what was already said: If you traverse unlike platforms (ie. from UNIX to Mainframe) and need character set conversion you will have no other option than to convert the binary content into a character representation. Otherwise either your XML tags will not be converted or your binary content will not be the same after MQ tried to convert it. Putting it at the tail end of a message won't help here since MQ converts all or nothing if you don't want to write your own data conversion exit (and I think you don't want that ;-)...). Have you thought about putting the binary content and the XML in separate messages and just reference the binary message from within the XML? It might be a bit more programming, but if message size and performance are an issue that might be an alternative worth thinking about. You could put the binary message first and put the messageId returned by MQ into your XML message. The receiving end would get the XML message first and then do a q! ualified MQGET on the binary message queue using the messageID from the XML. You will probably have to base64 encode the messageID, too, but that's only 24 Bytes instead of how many? Maybe it doesn't fit your application model, but I thought I spit it out anyways. Have a great weekend, Stefan


>From: "Chan, John" <[EMAIL PROTECTED]> >Reply-To: MQSeries List <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: XML blob as MQ Message >Date: Fri, 21 Feb 2003 10:12:33 -0500 > >Hey guys, > >Back ground information: >1. I have a few chucks of binary data. >2. I need to put them as part of the XML message. >3. This XML message is to be sent as MQ message. > >Now here are my questions, >1. What is the fastest and easiest way to move these binary data to XML >and send as MQ Message ? 2. For speed and feed, should I just tag these >binary data on the tail end of the MQ Message ? > >Any feed back is appreciated. > >JohnC


_________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE*
http://join.msn.com/?page=features/junkmail

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Reply via email to