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 » General IBM MQ Support » MQ File Transfer

Post new topic  Reply to topic
 MQ File Transfer « View previous topic :: View next topic » 
Author Message
michaelr_41
PostPosted: Fri Jul 23, 2004 10:18 am    Post subject: MQ File Transfer Reply with quote

Newbie

Joined: 23 Jul 2004
Posts: 4

I have an existing MQ connection between an iSeries server and a Win2K server. I'd like to use this connection to transfer files. Can anyone suggest either a technique or a reference? I've looked at some information and I *think* I would break up a file into pieces, transfer the pieces to the other system, and then reassemble the pieces. I've all seen the FileTransferApp Java class. Is that a better way? TIA...
Back to top
View user's profile Send private message
PGoodhart
PostPosted: Fri Jul 23, 2004 10:33 am    Post subject: Reply with quote

Master

Joined: 17 Jun 2004
Posts: 278
Location: Harrisburg PA

Exactly what/where is the FileTransferApp java class?

I have a similar requirement and I have begun to do the same sort of thinking.
I think you are right in a grand scheme sort of way about how you do it.
Some things to consider:
How to make sure you have the entire set of messages that make up your file.
How to ensure the proper order of assembly (the messages won't necessarily stay in order on the queues).
How to handle filenames.

The two possible solutions I have come up with so far for these problems either use a second message that contains the file information, or a custom header. I think there was a tread that dealt with the order of assembly.
_________________
Patrick Goodhart
MQ Admin/Web Developer/Consultant
WebSphere Application Server Admin
Back to top
View user's profile Send private message
michaelr_41
PostPosted: Fri Jul 23, 2004 10:50 am    Post subject: Reply with quote

Newbie

Joined: 23 Jul 2004
Posts: 4

http://www.redbooks.ibm.com/redbooks/pdfs/sg245849.pdf

Chapter 10 has info on how to do this. The FileTransferApp class is in Win2K MQ Express.
Back to top
View user's profile Send private message
clindsey
PostPosted: Fri Jul 23, 2004 5:10 pm    Post subject: Reply with quote

Knight

Joined: 12 Jul 2002
Posts: 586
Location: Dallas, Tx

I am doing this is an application using Reference Messages. The messages only contain the names of the source and destination files and carries a reference message header that a channel exit recognizes. Then all the work is done in the channel exit. It breaks the file into pieces and sends in chunks. The channel exit on the receiving end reconstructs the file. I implemented it in perl and C but it would be fairly easy to put a Reference message in Java as well.

There is a sample channel exit that is shipped with mq. Look in the sample programs section of the Prog Ref and it describes how to set it up.
You can use COA for confirmation as the sample does or implement you own confirmation via a reply message.

Charlie
Back to top
View user's profile Send private message
markt
PostPosted: Fri Jul 23, 2004 10:16 pm    Post subject: Reply with quote

Knight

Joined: 14 May 2002
Posts: 508

The File Transfer program in WMQ Express has got absolutely nothing to do with the piece of code in the cited redbook.
Back to top
View user's profile Send private message
michaelr_41
PostPosted: Sat Jul 24, 2004 5:12 am    Post subject: Reply with quote

Newbie

Joined: 23 Jul 2004
Posts: 4

That's correct mark. Two different ways of doing a file transfer.
Back to top
View user's profile Send private message
michaelr_41
PostPosted: Sat Jul 24, 2004 5:16 am    Post subject: Reply with quote

Newbie

Joined: 23 Jul 2004
Posts: 4

thanks Charlie...I'll check it out. I'll need to implement it in Java and have one complnent on the Win2K server and the corresponding component on the iSeries server.

Does anyone know anything about the MQ Express FileTransferApp class? I'm wondering if this would solve my file transfer issue without the need for me to write much 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 » General IBM MQ Support » MQ File Transfer
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.