Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JMS with respect to QueueRecievier.recieve  RSS feed

 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I had difficulties in understanding the above code .

Will the QueueRecievier would wait 10 secs in interval for receiving each Message ??
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
consumer.receive(1000);

If the recievier has exceeded 10 secs , will i get any Exception ??

Anybody on this please ???
 
Raf Szczypiorski
Ranch Hand
Posts: 383
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the timeout expires, you get a null. It's in the API...
 
RaviNada Kiran
Ranch Hand
Posts: 528
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey Thanks .

No one is answering my questions .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!