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();
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.
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