Author |
Message
|
gkinu |
Posted: Tue Mar 31, 2009 5:58 am Post subject: Websphere MQ: Can a Message be a File? |
|
|
Newbie
Joined: 31 Mar 2009 Posts: 2
|
Can a Websphere MQ message be a file? Can this be supported in the existing APIs?
Currently, my organization sends certain information to a number of other organizations. We do this in XML format as the data has to be structured in a parent-child relationship.
The data also changes very frequently. The other organizations keep changing the exact data they need.
I am new to Websphere MQ and am investigating whether it can help us. From the little I have read, I have in mind a publish/subscribe kind of message exchange, but to send actual xml files. Is this feasible? |
|
Back to top |
|
 |
zpat |
Posted: Tue Mar 31, 2009 6:02 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
You can send data in a message, that data can come from a file.
The MQI does not in itself provide file handling.
Websphere Message broker 6.1 does have this. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Mar 31, 2009 6:04 am Post subject: Re: Websphere MQ: Can a Message be a File? |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
gkinu wrote: |
Can a Websphere MQ message be a file? |
No.
An MQ Message is an MQ Message. A file is a file. These are always and completely distinct objects.
The contents of an MQ message can be the same as the contents of a file. But only by writing code to read the contents of the file and write it to an MQ message.
Just like a file can hold an image or text or a microsoft word document or a spreadsheet or XML data, so can an MQ message.
The only difference that is meaningful is that an MQ message can only be 100MB in size.
You should look at WebSphere MQ File Transfer Edition.
Last edited by mqjeff on Tue Mar 31, 2009 7:08 am; edited 1 time in total |
|
Back to top |
|
 |
Mr Butcher |
Posted: Tue Mar 31, 2009 6:04 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
you can send any type of file by MQ. you "just" have to make the file a message by putting it to MQ. MQ will send it to the target, were another application can get the message. Search here for filetransfer, you'll find plenty. There is everything available from free (sample) applications that do the job for you up to $$$ software. _________________ Regards, Butcher |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Mar 31, 2009 6:05 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
WMQ imposes no restrictions on the type of data that comprises your message application data. So, your message can contain XML, binaries, video, telemetry, whatever. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
gkinu |
Posted: Tue Mar 31, 2009 6:22 am Post subject: |
|
|
Newbie
Joined: 31 Mar 2009 Posts: 2
|
Wow! That was fast. Thank you all for your contributions.
#mqjeff
100MB is adequate for my message. Thanks. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Mar 31, 2009 7:02 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
...that an MQ message can only be 100MB in size. |
True, a single physical message has a maximum 100MB size; however an application can construct a Message Group .
A Message Group consists of one or more messages that comprise a logical message. The logical message, composed of many physical messages, can exceed 100MB. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Mar 31, 2009 7:08 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
bruce2359 wrote: |
Quote: |
...that an MQ message can only be 100MB in size. |
True, a single physical message has a maximum 100MB size; however an application can construct a Message Group .
A Message Group consists of one or more messages that comprise a logical message. The logical message, composed of many physical messages, can exceed 100MB. |
Sure, but let's show the new person the water, rather than give them a catalog of all the fish in it. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Mar 31, 2009 7:20 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
I wanted to disspell the 100MB limit myth. That number seems to be etched in stone (to continue with metaphors) as an absolute maximum. My motives were pure. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Mar 31, 2009 7:35 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
bruce2359 wrote: |
I wanted to disspell the 100MB limit myth. That number seems to be etched in stone (to continue with metaphors) as an absolute maximum. My motives were pure. |
It was only the method, not the motive that I questioned.
 |
|
Back to top |
|
 |
Sam Uppu |
Posted: Tue Mar 31, 2009 8:06 am Post subject: |
|
|
 Yatiri
Joined: 11 Nov 2008 Posts: 610
|
bruce2359 wrote: |
WMQ imposes no restrictions on the type of data that comprises your message application data. So, your message can contain XML, binaries, video, telemetry, whatever. |
Can we compress a message just like what we do with a file like adding it to WinZip etc?.
Thanks. |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Tue Mar 31, 2009 8:11 am Post subject: |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
The data that is put into the message would be compressed when putting and decompressed when getting (by the applications), if required |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Mar 31, 2009 8:17 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
WMBDEV1 wrote: |
The data that is put into the message would be compressed when putting and decompressed when getting (by the applications), if required |
And when moving over a channel, if channel compression is enabled. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Mar 31, 2009 9:20 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Quote: |
Can we compress a message just like what we do with a file like adding it to WinZip etc?. |
Not to appear redundant or repetitive or repeat myself, but: WMQ imposes no restrictions on the type of data that comprises your message application data. So, your message can contain XML, binaries, video, telemetry, whatever.
The message can be compressed by an application or not. It can be comprssed with a channel setting (where available), or not. It can be a .zip, a tar, a .jpg, a .mov. The message can be encrypted by an application or not. It can be encrypted by SSL channel settings (where available), or not. Any or all of the above.
WMQ doesn't care about the application data component of your messages. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
sumit |
Posted: Tue Mar 31, 2009 11:38 pm Post subject: Re: Websphere MQ: Can a Message be a File? |
|
|
Partisan
Joined: 19 Jan 2006 Posts: 398
|
gkinu wrote: |
The data also changes very frequently. The other organizations keep changing the exact data they need.
I am new to Websphere MQ and am investigating whether it can help us. From the little I have read, I have in mind a publish/subscribe kind of message exchange, but to send actual xml files. Is this feasible? |
Do you mean that other organizations change the part of data content what you send to them?
I believe pub-sub transmit complete message to all the applications who subscribe for it. So, if your intention is to send complete XML files (but not part) to several organisation, you can use pub-sub. _________________ Regards
Sumit |
|
Back to top |
|
 |
|