activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cristiano Ghersi" <cristiano.ghe...@abodata.com>
Subject RE: Problem in asynchronous dispatch of message
Date Fri, 15 Jun 2012 09:36:04 GMT
Thanks Gary, 
this is exactly what I was searching for!

Is there a proper way to configure broker logging in order to capture the
reason why the call blocks?
Do I need to search in my application logs (I'm using log4j in my
environment ) or is there a custom file for ActiveMQ?
May I check anything with tools like jconsole or similar?

Thank you very much !
Best
Cristiano 

-----Original Message-----
From: Gary Tully [mailto:gary.tully@gmail.com] 
Sent: giovedì 14 giugno 2012 15:49
To: users@activemq.apache.org
Subject: Re: Problem in asynchronous dispatch of message

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 <cristiano.ghersi@abodata.com>
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
>
>
>
> cristiano.ghersi@abodata.com
>
> Tel:    0039 010 3461059
>
> Fax:   0039 010 3462174
>
>



--
http://fusesource.com
http://blog.garytully.com



Mime
View raw message