qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marnie McCormack <marnie.mccorm...@googlemail.com>
Subject Re: QPID java client release compatibility with AMQP version
Date Thu, 02 Jul 2009 13:38:08 GMT
Hi Yann,

Using the Java Broker & Client together does not require you to specify the
protocol version - the client & broker will negotiate to the best (latest)
available version, currently 0-9.

Let us know if you have any problems ?

Thanks,
Marnie

On Thu, Jul 2, 2009 at 2:28 PM, Leglise Yann <yleglise@sopragroup.com>wrote:

>  Hello,
>
> I am new to QPID and I have a question about QPID java client release
> compatibility with AMQP version.
> I am using the last version of java broker (0.5) which can only handle up
> to AMQP 0-9, and the last version of java client (0.5) which can handle
> either AMQP 0-10 or 0-9 or 0-8 (as specified in
> http://qpid.apache.org/amqp-compatibility.html) . But to make the client
> and the broker able to communicate, I need to specify to the client to use
> the 0-9 version.
> I could not found any API to do this. So I browsed the repository, and I
> found the connect method code of Connection class :
>
>
>    public void connect(String host, int port, String vhost, String
> username, String password, boolean ssl,String saslMechs)
>    {
>        synchronized (lock)
>        {
>            state = OPENING;
>
>            delegate = new ClientDelegate(vhost, username,
> password,saslMechs);
>
>            IoTransport.connect(host, port, ConnectionBinding.get(this),
> ssl);
>            send(new ProtocolHeader(1, 0, 10));
>
>            ....
>
>
> As far as I can understand, the AMQP version is fixed and cannot be
> parametered, so why the java client is said to be compatible with version
> 0-9 ?
>
> Thank you for the explanation.
>
>
> Regards,
>
>
>
> Yann LEGLISE
> Agence STIE - Division Midi-Pyrénées
> Sopra group.
> 1 Avenue André Marie Ampère
> BP 10134 - 31772 Colomiers Cedex
> (Bureau 1C16)
> Phone : +33 (0)5 34 56 71 07
> yleglise@sopragroup.com - www.sopragroup.com <http://www.sopragroup.com/>
> Ce message peut contenir des informations confidentielles dont la
> divulgation est à ce titre rigoureusement interdite en l'absence
> d'autorisation explicite de l'émetteur. Dans l'hypothèse où vous auriez reçu
> par erreur ce message, merci de le renvoyer à l'émetteur et de détruire
> toute copie.
>
> P Pensez à l'environnement avant d'imprimer.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message