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 » Timeouts for closing MQ JMS connections,sessions,consumers

Post new topic  Reply to topic
 Timeouts for closing MQ JMS connections,sessions,consumers « View previous topic :: View next topic » 
Author Message
rrva
PostPosted: Sun Dec 05, 2010 10:56 am    Post subject: Timeouts for closing MQ JMS connections,sessions,consumers Reply with quote

Newbie

Joined: 05 Dec 2010
Posts: 2

Hello!

For asynchronous MQ JMS message consumers and producers, I have seen code which starts a new thread to call close() on javax.jms.Session, Connection and MessageConsumer instances, supposedly because these calls can hang due to network problems. Are there no client-side timeouts for these calls? If so, where are they configured? Using WMQ 6.0.2.5.

Also when using CLIENT_ACKNOWLEDGE mode, what is the timeout for message.acknowledge() ?
Back to top
View user's profile Send private message
rrva
PostPosted: Mon Dec 06, 2010 12:34 pm    Post subject: Re: Timeouts for closing MQ JMS connections,sessions,consume Reply with quote

Newbie

Joined: 05 Dec 2010
Posts: 2

Found out that MQ uses a SocketOutputStream when writing acks to the server. These calls are blocking. Bad.

Is the only way to make sure your processing isnt blocked by using a asynchronous message listener and let MQ commit the session if onMessage returns in a separate thread?
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 » Timeouts for closing MQ JMS connections,sessions,consumers
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.