activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From moreno9000 <>
Subject Re: sendFailIfNoSpace=true, no JMSException for Producer
Date Fri, 30 Oct 2009 08:26:53 GMT

Thank you Brett,
but I turned off async send, according to Gary Tully's first suggestion
(actually Producer's send speed decresead).

The "strange" matter is that Producer sends sync, but it receives
exception (when queue is full) only via an exception listener.

I don't know if is a AMQ's bug or, more likely, I'm doing something wrong.
I'm going to look at my java code and xml configuration (server and client

Any other suggestion is very very appreciated :-)


brett.humphreys wrote:
> Moreno,
> Your issue is that you're using async send.  I believe this is the default
> sending type for performance reasons.  However with async send, it puts
> your send in a queue and performs the send out of the calling thread.  
> What you need to do is explicitly disable async send on your producer (or
> via the URI used to create the connection.  More info is here:
> Once you turn this off on the connection your producer is created from,
> you'll get exceptions in the thread that is calling send().  With async
> send, you get better performance but you need to use an ExceptionListener
> to determine if you get exceptions on your send.
> Hope that helps Moreno.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message