thks,i  have  added   failover  in  paramter defore " tcp(....)  "and  the  
result  is right.the  application  can  be work  normal.------------------ 
Original ------------------
From: "Tim Bain [via ActiveMQ]"<[email protected]>
Date: Tue, Jul 21, 2015 09:32 PM
To: "dugh"<[email protected]>;
Subject: Re: ApplicationProgramer throw "Connection Refused"


        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 <[hidden email]> 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. 
> 

                                
        
        
                        If you reply to this email, your message will be added 
to the discussion below:
                
http://activemq.2283324.n4.nabble.com/ApplicationProgramer-throw-Connection-Refused-tp4699380p4699626.html
      
                                        To unsubscribe from 
ApplicationProgramer throw "Connection Refused", click here.
                NAML



--
View this message in context: 
http://activemq.2283324.n4.nabble.com/Re-ApplicationProgramer-throw-Connection-Refused-tp4699627.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to