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 » Without Setting Expiry period .............

Post new topic  Reply to topic
 Without Setting Expiry period ............. « View previous topic :: View next topic » 
Author Message
rajmq
PostPosted: Sat Feb 08, 2003 4:43 am    Post subject: Without Setting Expiry period ............. Reply with quote

Partisan

Joined: 29 Sep 2002
Posts: 331
Location: USA

Hi

I am using MQJava API classes for Reading and Writing the message in the Queue.
As per our Requirement i need to keep the same message after Reading from the queue
Is there any properties to set slove this probs?

Thanks in Advance
raj
Back to top
View user's profile Send private message
nimconsult
PostPosted: Sun Feb 09, 2003 11:12 pm    Post subject: Reply with quote

Master

Joined: 22 May 2002
Posts: 268
Location: NIMCONSULT - Belgium

Yes, you set the browse (MQGMO_BROWSE_FIRST or MQGMO_BROWSE_NEXT) option in the MQGetMessageOptions.option. See prog ref for more details.

Nicolas
_________________
Nicolas Maréchal
Senior Architect - Partner

NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be
Back to top
View user's profile Send private message Send e-mail Visit poster's website
rajmq
PostPosted: Mon Feb 10, 2003 2:57 am    Post subject: Reply with quote

Partisan

Joined: 29 Sep 2002
Posts: 331
Location: USA

Hi,

Thank for ur Reply,I just specified that properties after that it is ok.
I checked manuals also i am not able to understand below properties:
can u give some more explaination??

MQC.MQGMO_BROWSE_FIRST
Browse from start of queue.

MQC.MQGMO_BROWSE_NEXT
Browse from the current position in the queue.


regs
raj
Back to top
View user's profile Send private message
nimconsult
PostPosted: Mon Feb 10, 2003 11:50 pm    Post subject: Reply with quote

Master

Joined: 22 May 2002
Posts: 268
Location: NIMCONSULT - Belgium

You can iterate on MQGET with the MQGMO_BROWSE_NEXT option, and this will retrieve all messages of the queue.
With MQGMO_BROWSE_FIRST you move back to the first message of the queue.

Nicolas
_________________
Nicolas Maréchal
Senior Architect - Partner

NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Without Setting Expiry period .............
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.