have a read of http://activemq.apache.org/producer-flow-control.html note sendFailIfNoSpace and org.apache.activemq.ActiveMQConnectionFactory#sendTimeout
Maybe u can post a text version of the stack trace. Check the broker log for information as to the reason for the blocked call to send. On 13 June 2012 11:37, Cristiano Ghersi <[email protected]> wrote: > Good morning. > > > > I’m using ActiveMQ 5.6.0 under OSGi environment. > > I’m running an application with several producers and consumers. > > Sometimes, one of my producers is freezed while sending a message (please > find attached a print screen of the stacktrace for this call). > > > > Is there a way to prevent such a freeze? > > Or better, is there a way to configure ActiveMQ so that it suddenly returns > from the invocation of MessageProducer.send(txt_message) without checking > the availability of broker, etc.? > > I’d also like to have a way to discard these messages if broker results > unreachable for too much time… > > > > Let me know how to manage such situation. > > > > Thank you very much! > > Best regards > > > > > > Cristiano Ghersi > > Software Engineer > > ABODATA > > > > [email protected] > > Tel: 0039 010 3461059 > > Fax: 0039 010 3462174 > > -- http://fusesource.com http://blog.garytully.com
