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 » General IBM MQ Support » Base java

Post new topic  Reply to topic
 Base java « View previous topic :: View next topic » 
Author Message
MQNovice
PostPosted: Mon Dec 24, 2001 12:52 pm    Post subject: Reply with quote

Newbie

Joined: 19 Dec 2001
Posts: 3

hi all
how do i implement getting multiple messages from a queue in java? is there anyway we can check no of messages in the queue before hand or any method something like ...
if(nxtMsg = null)
closeQueue();

if u 've ne code, please pass on.
Back to top
View user's profile Send private message
kolban
PostPosted: Tue Dec 25, 2001 12:34 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

You can get a message from a queue with or without blocking. If no message is immediately available, the get() method will throw a catchable MQException which you can trap.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Tue Dec 25, 2001 11:28 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3251
Location: London, ON Canada

If you want more Java base MQ samples, have a look at my web site:
http://www.geocities.com/capitalware/helio.html

later
Roger...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Base 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.