Author |
Message
|
michaelr_41 |
Posted: Fri Jul 23, 2004 10:18 am Post subject: MQ File Transfer |
|
|
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 |
|
 |
PGoodhart |
Posted: Fri Jul 23, 2004 10:33 am Post subject: |
|
|
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 |
|
 |
michaelr_41 |
Posted: Fri Jul 23, 2004 10:50 am Post subject: |
|
|
Newbie
Joined: 23 Jul 2004 Posts: 4
|
|
Back to top |
|
 |
clindsey |
Posted: Fri Jul 23, 2004 5:10 pm Post subject: |
|
|
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 |
|
 |
markt |
Posted: Fri Jul 23, 2004 10:16 pm Post subject: |
|
|
 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 |
|
 |
michaelr_41 |
Posted: Sat Jul 24, 2004 5:12 am Post subject: |
|
|
Newbie
Joined: 23 Jul 2004 Posts: 4
|
That's correct mark. Two different ways of doing a file transfer. |
|
Back to top |
|
 |
michaelr_41 |
Posted: Sat Jul 24, 2004 5:16 am Post subject: |
|
|
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 |
|
 |
|