SwiftMQ 4.7.0 and freeze
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Andrea_Gambirasio
Posted On:   Wednesday, September 22, 2004 07:54 AM

Sometimes this code: // get connection factory and search topic TopicConnectionFactory connectionFactory = (TopicConnectionFactory) ctx_.lookup("TopicConnectionFactory"); topic_ = (Topic) ctx_.lookup("myTopic"); Freezes the application (is trying to connecting to the bus 4.7.0) AND the bus. The one solutions is not only restart the application but the server too. Is it possible defines timeout to lookup function ? We cannot reproduce the error which happened sometimes, after weeks without problems. Thanks a lot for suggestions    More>>

Sometimes this code:


// get connection factory and search topic
TopicConnectionFactory connectionFactory = (TopicConnectionFactory) ctx_.lookup("TopicConnectionFactory");
topic_ = (Topic) ctx_.lookup("myTopic");


Freezes the application (is trying to connecting to the bus 4.7.0) AND the bus. The one solutions is not only restart the application but the server too.


Is it possible defines timeout to lookup function ?


We cannot reproduce the error which happened sometimes, after weeks without problems.
Thanks a lot for suggestions

   <<Less

Re: SwiftMQ 4.7.0 and freeze

Posted By:   Andreas_Mueller  
Posted On:   Wednesday, September 22, 2004 12:32 PM

There is a timeout parameter in the SMQP-URL:

smqp://host:port/timeout=10000

Returns after 10 secs with a NameNotFoundException.


If the router "freezes" this might be caused by lack of threads in pool "jms.connection". There is only 1 by default. If that is busy, e.g. by trying to send data to very slow clients, it can't process other clients. You might increase the min/max threads of pool "jms.connection" to 10/10.
About | Sitemap | Contact