Author |
Message
|
angka |
Posted: Thu Mar 22, 2007 1:28 am Post subject: Save message in a queue to a file |
|
|
Chevalier
Joined: 20 Sep 2005 Posts: 406
|
Hi,
How to save all the message in a queue to a file? all the headers and message content like how the rfhutil does. and can load back using rfhutil.
I need this so that I can save the messages in a queue automatically.
Thanks. |
|
Back to top |
|
 |
Michael Dag |
Posted: Thu Mar 22, 2007 1:44 am Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
|
Back to top |
|
 |
angka |
Posted: Thu Mar 22, 2007 2:04 am Post subject: |
|
|
Chevalier
Joined: 20 Sep 2005 Posts: 406
|
|
Back to top |
|
 |
zpat |
Posted: Thu Mar 22, 2007 2:10 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
On z/OS - you can use CSQUTIL. |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 22, 2007 3:40 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Also look at CapitalWare's products. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
anantha sreenivasan |
Posted: Thu Mar 22, 2007 9:28 am Post subject: |
|
|
Acolyte
Joined: 26 Sep 2006 Posts: 72
|
QPasa or AppWatch can be used to save the queue contents onto a file using GUI. Using this one can administer MQ installed on any platform from Windows |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 22, 2007 9:32 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Most professional/enterprise quality MQ monitoring or administration apps - like QPasa or AppWatch - can be used to save the queue contents.
Most professional/enterprise quality MQ monitoring or administration apps - like Qpasa or AppWatch - are too complicated and expensive to implement JUST to save the contents of a queue. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
magicwand |
Posted: Thu Mar 22, 2007 9:52 am Post subject: |
|
|
 Newbie
Joined: 12 Feb 2007 Posts: 6
|
Can amqsbcg be used for this purpose? |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 22, 2007 9:54 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
magicwand wrote: |
Can amqsbcg be used for this purpose? |
It would be time consuming to write a program that would take the output from amqsbcg and convert it back to a form that can be written to a queue.
But yes, it could be used. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
mdncan |
Posted: Wed Mar 28, 2007 9:18 am Post subject: |
|
|
Acolyte
Joined: 11 May 2005 Posts: 59 Location: US
|
MQJExplorer can be used to backup the messages to a file and same tool can be used to restore (put) the messages to a queue. |
|
Back to top |
|
 |
HubertKleinmanns |
Posted: Thu Mar 29, 2007 1:33 am Post subject: |
|
|
 Shaman
Joined: 24 Feb 2004 Posts: 732 Location: Germany
|
jefflowrey wrote: |
magicwand wrote: |
Can amqsbcg be used for this purpose? |
It would be time consuming to write a program that would take the output from amqsbcg and convert it back to a form that can be written to a queue.
But yes, it could be used. |
I would take the source code of amqsbcg or better amqsget, modify it and compile it, before programming something around amqsbcg .
But the q utility - as Michael Dag suggested - is a good solution . _________________ Regards
Hubert |
|
Back to top |
|
 |
Michael Dag |
Posted: Mon Apr 23, 2007 10:29 pm Post subject: |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
jefflowrey wrote: |
magicwand wrote: |
Can amqsbcg be used for this purpose? |
It would be time consuming to write a program that would take the output from amqsbcg and convert it back to a form that can be written to a queue.
But yes, it could be used. |
Looks like someone has been getting this idea too.
Just when you think Paul Clarke is out of tricks he invents new ones...
the latest version of QLOAD (MO03) can process the output of amqsbcg _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
ashu |
Posted: Mon Apr 23, 2007 10:57 pm Post subject: |
|
|
 Centurion
Joined: 11 Nov 2006 Posts: 132
|
Are the messages that are stored to the file in text form or binary? |
|
Back to top |
|
 |
dgolding |
Posted: Mon Apr 23, 2007 11:46 pm Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
It depends on whether you're using "qload" or "q". From memory "qload" will save it as text, "q" will save it as binary. |
|
Back to top |
|
 |
ashu |
Posted: Tue Apr 24, 2007 1:35 am Post subject: |
|
|
 Centurion
Joined: 11 Nov 2006 Posts: 132
|
dgolding wrote: |
It depends on whether you're using "qload" or "q". From memory "qload" will save it as text, "q" will save it as binary. |
So is the case that q is used when the middleware needs to take a snapshot of the current states of its queues so that it can later be reloaded...
and qload is used by administrators to store messages in human readable form?...
...is this question correct in the first place ?!  |
|
Back to top |
|
 |
|