|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Transfer Zip file using JMS & MQ |
« View previous topic :: View next topic » |
Author |
Message
|
harshvajra |
Posted: Thu Nov 22, 2007 11:26 pm Post subject: Transfer Zip file using JMS & MQ |
|
|
 Apprentice
Joined: 23 Apr 2007 Posts: 46 Location: India
|
Hello all,
here is what making me bit confused.........
The requirement is to transfer file(zip file) fm one system to another using MQ and JMS.
This is the approach im following.
Now the zip file is being read as array of byte bytes and using JMS Byte message sending msg(byte msg) to target msg.
I am reading the zip in bytes and and a jmssender class is sending this byte message .
The target machine is using jms receiver to receive the jms byte message and then construct the zip file same as actual zip file on source system.
How can we construct array of byte(byte message ) to a zip file.
Can experts guide, how to go about ? _________________ Failure is not a defeat,it's just a delay, Walk TALL |
|
Back to top |
|
 |
JLRowe |
Posted: Fri Nov 23, 2007 3:58 am Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
You're not reading the contents of the zip file, you're just treating it as a stream of Bytes just like any other file. So just write the destination file using the byte array as content. Use a JMS BytesMessage. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Nov 23, 2007 8:33 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Quote: |
How can we construct array of byte(byte message ) to a zip file.
Can experts guide, how to go about ? |
Take a refresher course in java.io. This is basic...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|