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 » message from a queue to a file

Post new topic  Reply to topic
 message from a queue to a file « View previous topic :: View next topic » 
Author Message
ak72
PostPosted: Thu Feb 24, 2005 9:02 am    Post subject: message from a queue to a file Reply with quote

Novice

Joined: 10 Jan 2005
Posts: 13

Hi all,
I have a situation in which as soon as a message comes to a queue it has to be stored in to file automatically .

Thanks
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Thu Feb 24, 2005 9:43 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

OK.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
PGoodhart
PostPosted: Thu Feb 24, 2005 9:44 am    Post subject: Reply with quote

Master

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

What do you want? Yes it is possible, no it isn't something you just turn on, and you should search the site since I know this has been discussed before....
_________________
Patrick Goodhart
MQ Admin/Web Developer/Consultant
WebSphere Application Server Admin
Back to top
View user's profile Send private message
ak72
PostPosted: Thu Feb 24, 2005 10:03 am    Post subject: Reply with quote

Novice

Joined: 10 Jan 2005
Posts: 13

Hi all,
Can any one tell me how to do this.

Thanks
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Thu Feb 24, 2005 10:16 am    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

ak72

There are several ways to do this, it will depend on your application/business needs. There really isn't sufficient information in your request to be able to answer it fully.

Questions would include:

Do you want a seperate file for each message?
Do you want to overwrite the same file every time a message arrives?
What platforms are you using?
Do you want the disk writting task to start automatically and run until you close it, or do you want the task to end when it gets a 2033 and restart the next time a message arrives?
Do you want the message to stay on the queue or can it be delete once it is written to the file?

You may want to check out some of the threads on here if you are just wanting to keep the messages for potential replay. There are some free utilities around to assist in this area.

Hope this helps
Back to top
View user's profile Send private message
ak72
PostPosted: Thu Feb 24, 2005 11:30 am    Post subject: Reply with quote

Novice

Joined: 10 Jan 2005
Posts: 13

Hi kevin,
Thanks for the reply.Yes for each message a seprate file is to be created and the message is to be deleted from the queue. The operating system is windows XP.

Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Feb 24, 2005 11:39 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You need to write a program.

Or buy a program.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Thu Feb 24, 2005 2:14 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

Quote:
Or buy a program.

ak72,

You can download a 30-day trial of MQ Batch Toolkit and use its 'Export' function to what you require.

For more information, go to:
http://www.capitalware.biz/mqbt_overview.html

Regards,
Roger Lacroix
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
zpat
PostPosted: Fri Feb 25, 2005 12:05 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

If you want the program to process messages continuously as they arrive simply code it like this (pseudo code):

MQCONN
MQOPEN
loop:
MQGET WAIT, CONVERT, FAIL_IF_QUIESCING, SYNCPOINT
if QUISCE Then goto end
if NO_MSG_AVAILABLE then goto loop
WRITE FILE
MQCOMMIT
goto loop
end:
MQCLOSE
MQDISC

You could do it without syncpointing but this increases reliability - I would not suggest using a product for such a simple purpose. You get far more control by coding your own program.

You really need to tell us more about platform, languages you can use etc.
Back to top
View user's profile Send private message
ak72
PostPosted: Wed Mar 02, 2005 9:15 am    Post subject: Reply with quote

Novice

Joined: 10 Jan 2005
Posts: 13

Hi all,

Thanks very much for your help, I will try the way you all explained.

Once again thanks a lot to you all for the help.
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 » message from a queue to a file
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.