OK, so if your goal is simply to allow the producer to detect that the broker is unavailable, you can get the behavior you want by using the sendTimeout setting ( https://stackoverflow.com/questions/15315631/activemqconnectionfactory-sendtimeout) instead of the closeTimeout setting (whose purpose is to prevent closing the connection - which you're not doing - from waiting forever).
Tim On Aug 20, 2017 7:13 PM, "[email protected]" <[email protected]> wrote: > i need to handle the exception when the broker is not available. Currently > if > broker is down my produser always try to send message to queue and it > doesn't stop the trying send the message > > > > -- > View this message in context: http://activemq.2283324.n4. > nabble.com/How-to-stop-retry-continously-tp4729842p4729851.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >
