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 » File Transfer through MQ

Post new topic  Reply to topic
 File Transfer through MQ « View previous topic :: View next topic » 
Author Message
team
PostPosted: Tue Apr 15, 2008 5:29 am    Post subject: File Transfer through MQ Reply with quote

Centurion

Joined: 03 Nov 2006
Posts: 108

Hi All

I have a group of messages to be sent via MQ.
But I need to send these messages in a File.Is the File transfer through queues possible?
If yes,what is the procedure i should follow.
Thanks in advance
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Tue Apr 15, 2008 5:31 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Files are not messages. MQ only sends messages.

There are a lot of ways to use MQ to "send" files.

there's a File Transfer Application that comes with MQ v6, for example.

Lots of discussion on this topic.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Tue Apr 15, 2008 8:07 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

read the content of the file and send it using 'BytesMessage'. put the file name in the message header (MQRFH2 usr folder shall be of help). 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.

or else 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

Another way could be to use a JAVA based FTP API. I googled for one and found this: http://www.jmethods.com/products/ftpapi/ (new thing for me too)

The best way would be to use Server File Transfer Application of MQ itself.
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
jeevan
PostPosted: Wed Apr 16, 2008 8:07 am    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

AkankshA wrote:
read the content of the file and send it using 'BytesMessage'. put the file name in the message header (MQRFH2 usr folder shall be of help). 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.

or else 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

Another way could be to use a JAVA based FTP API. I googled for one and found this: http://www.jmethods.com/products/ftpapi/ (new thing for me too)

The best way would be to use Server File Transfer Application of MQ itself.


or if this requirement is for regularly transfering files in big numbers , you can look into PM4DATA. PM4DATA uses MQ network to transfer files with much flexibility.
Back to top
View user's profile Send private message
team
PostPosted: Thu Apr 17, 2008 4:58 am    Post subject: Thanks Reply with quote

Centurion

Joined: 03 Nov 2006
Posts: 108

hi
thanks a lot for ur replies...have started working on the suggestions..

Thanks again
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » File Transfer through 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.