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 » IBM MQ Java / JMS » Copying a Specified Number of Messages

Post new topic  Reply to topic
 Copying a Specified Number of Messages « View previous topic :: View next topic » 
Author Message
VijayGoparaju`
PostPosted: Tue Sep 09, 2008 9:32 pm    Post subject: Copying a Specified Number of Messages Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Sep 10, 2008 2:30 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
bower5932
PostPosted: Wed Sep 10, 2008 3:56 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
VijayGoparaju`
PostPosted: Thu Sep 11, 2008 12:31 am    Post subject: Reply with quote

Acolyte

Joined: 26 Aug 2008
Posts: 72

Thank You,
The issue is Solved.
Vijay...
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 » IBM MQ Java / JMS » Copying a Specified Number of Messages
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.