You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by HellKnight <he...@foxmail.com> on 2013/11/09 06:03:39 UTC

timeout property of failover did not work ?

I am using activemq 5.9.0 linux , nms 1.6.0 , developing by visual studio
2010 sp1 and win xp sp2 .
I want to use failover transport , and send operation fails after 500ms
while trying reconnecting.
So I use a URI like this :failover:(tcp://192.168.193.177:61616)?timeout=500

I write a very simple test , creating an autoack mode session and send a
message syncly. But if I close the broker, the send method did not throw any
exception after 500ms ,it blocks forever. 
Any idea how this could happen ? thanks in advance.



--
View this message in context: http://activemq.2283324.n4.nabble.com/timeout-property-of-failover-did-not-work-tp4674120.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: timeout property of failover did not work ?

Posted by HellKnight <he...@foxmail.com>.
shame on me , Mr. Bish. Thanks. I will make sure never ask  these trival
"problems"



--
View this message in context: http://activemq.2283324.n4.nabble.com/timeout-property-of-failover-did-not-work-tp4674120p4674124.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: timeout property of failover did not work ?

Posted by Timothy Bish <ta...@gmail.com>.
On 11/09/2013 12:03 AM, HellKnight wrote:
> I am using activemq 5.9.0 linux , nms 1.6.0 , developing by visual studio
> 2010 sp1 and win xp sp2 .
> I want to use failover transport , and send operation fails after 500ms
> while trying reconnecting.
> So I use a URI like this :failover:(tcp://192.168.193.177:61616)?timeout=500
>
> I write a very simple test , creating an autoack mode session and send a
> message syncly. But if I close the broker, the send method did not throw any
> exception after 500ms ,it blocks forever.
> Any idea how this could happen ? thanks in advance.
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/timeout-property-of-failover-did-not-work-tp4674120.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
Because you aren't using the correct URI options, see:
http://activemq.apache.org/nms/activemq-uri-configuration.html

failover:(tcp://192.168.193.177:61616)?transport.timeout=500


-- 
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.fusesource.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/