Frase, 

thank you very much for so detailed answer.
My question was about versions and "official qpid specification".
I suppose, that https://cwiki.apache.org/qpid/connection-url-format.html makes 
sense for M4 or 0.5, and I'm not sure about usage it in the 0.12 and further.

Actually, there is no "retries" option at 
http://qpid.apache.org/books/0.12/Programming-In-Apache-Qpid/html/ch03s02.html#section-jms-connection-url

Regards,
Boris

-----Original Message-----
From: Fraser Adams [mailto:[email protected]] 
Sent: Wednesday, November 16, 2011 11:07 PM
To: [email protected]
Subject: Re: Broker URL - Connection Options

Hi Boris,
I don't know much about the Binding URL but I can help you with the 
ConnectionURL stuff :-)

It's pretty darned hard to find a comprehensive list one needs to do a bit of 
digging....

There's a good list of stuff here:
http://qpid.apache.org/books/0.12/Programming-In-Apache-Qpid/html/ch03s02.html#section-jms-connection-url

but the info that you really need is here:

https://cwiki.apache.org/qpid/connection-url-format.html

Option  Default         Description
retries         1       The number of times to retry connection to this Broker
ssl     false   Use ssl on the connection
connecttimeout  30000   How long in (milliseconds) to wait for the 
connection to succeed
connectdelay    none    How long in (milliseconds) to wait before attempting 
to reconnect


I've been using these in Qpid 0.10 so they are definitely still there, I'd hope 
that they were still in 0.12 though haven't tried. It would be nice if these 
pages got consolidated.

I just wanted to emulate the simple "retry" option available in the C++ 
qpid::messaging API so I've got code that looks like:

if (options.containsKey("reconnect"))
            {
                String value = options.get("reconnect").toString();
                if (value.equalsIgnoreCase("true"))
                {
                    retries = "&retries='" + Integer.MAX_VALUE + "'";
                    connectdelay = "&connectdelay='5000'";
                }
            }

Which gives (nearly!!) infinite retries with a 5 second delay between retries.

Regards,
Frase

Ilyushonak Barys wrote:
> Hi, Guru
>
> Could you please clarify the following. It was some settings in qpid v0.7:
> retries       
> connecttimeout
> connectdelay
> http://qpid.apache.org/books/0.7/Qpid-Book/html/ch11.html#BindingURLFo
> rmat
>
> They are still in code, but there is no any info in latest docs.
> Does this settings work in qpid version 0.12?
> If no, what should I use to implement reconnect behavior?
>
> Reragds,
> Boris
>
> _______________________________________________________
>
> The information contained in this message may be privileged and conf idential 
> and protected from disclosure. If you are not the original intended 
> recipient, you are hereby notified that any review, retransmission, 
> dissemination, or other use of, or taking of any action in reliance upon, 
> this information is prohibited. If you have received this communication in 
> error, please notify the sender immediately by replying to this message and 
> delete it from your computer. Thank you for your cooperation. Troika Dialog, 
> Russia. 
> If you need assistance please contact our Contact Center  (+7495) 258 
> 0500 or go to www.troika.ru/eng/Contacts/system.wbp
>
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:[email protected]
>
>
>   


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to