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
side).

Any other suggestion is very very appreciated :-)

Moreno 



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:
> http://activemq.apache.org/async-sends.html
> 
> 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: 
http://old.nabble.com/sendFailIfNoSpace%3Dtrue%2C-no-JMSException-for-Producer-tp26094263p26126461.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to