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 » Transfer Zip file using JMS & MQ

Post new topic  Reply to topic
 Transfer Zip file using JMS & MQ « View previous topic :: View next topic » 
Author Message
harshvajra
PostPosted: Thu Nov 22, 2007 11:26 pm    Post subject: Transfer Zip file using JMS & MQ Reply with quote

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
View user's profile Send private message Send e-mail
JLRowe
PostPosted: Fri Nov 23, 2007 3:58 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
fjb_saper
PostPosted: Fri Nov 23, 2007 8:33 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Transfer Zip file using JMS & MQ
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.