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 » How to read messages from mqseries continuously by java?

Post new topic  Reply to topic
 How to read messages from mqseries continuously by java? « View previous topic :: View next topic » 
Author Message
nagaraju.chinni
PostPosted: Thu Mar 06, 2008 2:28 am    Post subject: How to read messages from mqseries continuously by java? Reply with quote

Newbie

Joined: 13 Feb 2008
Posts: 6

Hi,
I'm sending messages to the MQSeries queue.
Here my requirement is i have to write a java/jms program that should run at the back side and check the queue for every 5 minutes for messages.If any message exists in the queue the java/jms program should read the message and display it on the console.
If anybody has idea please reply it.
thanks in advance
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Mar 06, 2008 2:35 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Much better to use MQGET with WAIT so that there is not a delay when a message is available.

Polling is generally a bad idea.
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 » How to read messages from mqseries continuously by java?
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.