Here's what I understood your question to be; please tell me if I've misunderstood. "My application throws a 'Connection Refused' exception when it can't connect to my ActiveMQ broker if the broker is not running, which crashes my application. I want my application to keep running even if the ActiveMQ server is down; how can I do that?"
If what you want is for your client to reconnect to the ActiveMQ broker automatically when it comes back up, you can use the failover transport to automatically retry the connection each time it drops. See http://activemq.apache.org/failover-transport-reference.html for details. If that didn't answer your question (or if I didn't understand it properly), please clarify what you're asking and we'll try to help. Tim On Thu, Jul 16, 2015 at 3:46 AM, dugh <545474...@qq.com> wrote: > ApplicationProgramer throw "Connection Refused" when encountered MQServer > broken, it leads to the ApplicationProgramer stop that not be allowed, so > how can i resolve this problem? let application programer can be normal > work > ,even if the MQServer broken? > > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/ApplicationProgramer-throw-Connection-Refused-tp4699380.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. >