Hi,
Can anybody please tell me how to transfer a file over MQ Series? I can read the content of the file and send it using 'BytesMessage'. But the problem is using this approach, I won't be able to get the name of the file at receiver file.
Any better way out? Please reply.
Thanks in advance,
Anirban
-
File Transfer over MQ Series (2 messages)
- Posted by: Anirban Basu
- Posted on: May 09 2006 03:53 EDT
Threaded Messages (2)
- File Transfer over MQ Series by Sohail Sikora on May 09 2006 12:50 EDT
- pass the contents of the file as String by Sanjeev Prasad on May 18 2006 00:25 EDT
-
File Transfer over MQ Series[ Go to top ]
- Posted by: Sohail Sikora
- Posted on: May 09 2006 12:50 EDT
- in response to Anirban Basu
Why can you not put the file name in the message header? That way your listener on the other end can read the message, get the filename from the header and write the payload to a file of that name.
A better way would be to use a JAVA based FTP API. I googled for one and found this:
http://www.jmethods.com/products/ftpapi/
The best way would be to use an Enterprise grade file transfer tool. -
pass the contents of the file as String[ Go to top ]
- Posted by: Sanjeev Prasad
- Posted on: May 18 2006 00:25 EDT
- in response to Anirban Basu
Try this out. Read the input file. Append it into a StringBuffer object and write that object into the queue. Read from the queue and write back the contents into a file