|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Copying a Specified Number of Messages |
« View previous topic :: View next topic » |
Author |
Message
|
VijayGoparaju` |
Posted: Tue Sep 09, 2008 9:32 pm Post subject: Copying a Specified Number of Messages |
|
|
Acolyte
Joined: 26 Aug 2008 Posts: 72
|
Hello All,
I have a Problem, I have to copy some specified number of messages from Source Queue to Destination Queue.When I am trying to copy only the first message is copying so many number of times to the Destination Queue.How to move the pointer to the next message and copy the remaining messages.
I have opened the First Queue in BROWSE mode and Second Queue in OUTPUT Mode.
Please help Me,
Thanks in Advance,
Vijay.... |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Sep 10, 2008 2:30 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Do not post multiple times.
Make sure the queue is opened and closed outside of the loop and not inside of the loop.
Make sure that only the very first get options contain the browse first option.
(You need to set the options again after the first get. You can then reuse them.)
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Sep 10, 2008 3:56 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
Haven't we seen this append (or variations of it) quite a bit over the last few weeks?
I'd suggest that you look at the amqsget0.c sample. It gets all messages off of a queue. You can look at amqsput0.c to get a feel for how to put the message back onto another queue. |
|
Back to top |
|
 |
VijayGoparaju` |
Posted: Thu Sep 11, 2008 12:31 am Post subject: |
|
|
Acolyte
Joined: 26 Aug 2008 Posts: 72
|
Thank You,
The issue is Solved.
Vijay... |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|