[ https://issues.apache.org/activemq/browse/AMQ-515?page=comments#action_36821 ] John Heitmann commented on AMQ-515: -----------------------------------
I'm attaching a feature we're using to get 90% of this. It's a per-UsageManager setting that configures whether sends will block on the usage manager (the default/old way) or get an exception thrown back to the producer. Because it's on a usage manager the setting can be applied per destination. I'd prefer this setting to be set on the producer side and passed over the wire, but I don't see a clean way to add it in that wouldn't require an openwire version bump, so the usage manager config is a compromise. > Add option so that producer.send() throws an exception if it would block due > to the queue/broker being full. > ------------------------------------------------------------------------------------------------------------ > > Key: AMQ-515 > URL: https://issues.apache.org/activemq/browse/AMQ-515 > Project: ActiveMQ > Issue Type: New Feature > Components: JMS client, Broker > Reporter: Hiram Chirino > Assigned To: John Heitmann > Fix For: 4.2 > > -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
