You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Amila Suriarachchi <am...@gmail.com> on 2011/07/30 15:18:23 UTC

How to change the AMQP version when sending messages through JMS API

I saw by default qpid client send messages with AMQP version 10. how can I
change that to 9.1 or 8.0 etc ..

thanks,
Amila.

-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Re: How to change the AMQP version when sending messages through JMS API

Posted by Amila Suriarachchi <am...@gmail.com>.
On Thu, Aug 4, 2011 at 7:35 PM, Rajith Attapattu <ra...@gmail.com> wrote:

> On Thu, Aug 4, 2011 at 6:03 AM, Amila Suriarachchi
> <am...@gmail.com> wrote:
> > On Sat, Jul 30, 2011 at 7:20 PM, Rajith Attapattu <rajith77@gmail.com
> >wrote:
> >
> >> Use -Dqpid.amqp.version="0-8" for 0-8 version and for 0-91 use
> >> -Dqpid.amqp.version="0-91".
> >>
> >
> > One more thing. Which version is the most stable one?
> >
> > As I saw in the code versions 0_8, 0_9, 0_91 and 0_10 uses different
> > executions paths.
>
> The C++ broker only supports the 0-10 version.
> The Java broker supports all of the above.
>
> As to which version you want depends on your needs w.r.t the protocol.
> All these versions have been deployed in production.
>
> The company that I work for only supports the C++ broker, so all the
> production deployments that I deal with have been using the 0-10
> client.
> Folks who have used the others versions in production could provide
> more info about the pre 0-10 versions.
>
> The Java client in general has decent performance and is reasonably stable.
> There are no known memory issues on the Java client that I know of.
> There are some known deadlock issues and performance issues for
> certain use cases (ex synchronous publish).
>
> My advise is to write a POC for what you are planning to do and
> conduct testing to figure out if performance and stability meets your
> expectations.
>

Thanks for your reply.

My scenario is also similar to what you have mentioned. There are about 40
consumers and publishers constantly publish and receive messages. We use the
java broker.

In publishers side we can either reuse the connections or sessions. In
general or in your performance test what type of reuse you have done?

And also when creating the queues we can create them using jndi lookups or
using the session.createqueue method what could be the best way?

What I try to figure out some general opinion since testing all these
scenarios take more time.

thanks,
Amila.


>
> Regards,
>
> Rajith
>
> > thanks,
> > Amila.
> >
> >>
> >> Rajith
> >>
> >> On Sat, Jul 30, 2011 at 9:18 AM, Amila Suriarachchi
> >> <am...@gmail.com> wrote:
> >> > I saw by default qpid client send messages with AMQP version 10. how
> can
> >> I
> >> > change that to 9.1 or 8.0 etc ..
> >> >
> >> > thanks,
> >> > Amila.
> >> >
> >> > --
> >> > Amila Suriarachchi
> >> > WSO2 Inc.
> >> > blog: http://amilachinthaka.blogspot.com/
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> Apache Qpid - AMQP Messaging Implementation
> >> Project:      http://qpid.apache.org
> >> Use/Interact: mailto:users-subscribe@qpid.apache.org
> >>
> >>
> >
> >
> > --
> > Amila Suriarachchi
> > WSO2 Inc.
> > blog: http://amilachinthaka.blogspot.com/
> >
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Re: How to change the AMQP version when sending messages through JMS API

Posted by Rajith Attapattu <ra...@gmail.com>.
On Thu, Aug 4, 2011 at 6:03 AM, Amila Suriarachchi
<am...@gmail.com> wrote:
> On Sat, Jul 30, 2011 at 7:20 PM, Rajith Attapattu <ra...@gmail.com>wrote:
>
>> Use -Dqpid.amqp.version="0-8" for 0-8 version and for 0-91 use
>> -Dqpid.amqp.version="0-91".
>>
>
> One more thing. Which version is the most stable one?
>
> As I saw in the code versions 0_8, 0_9, 0_91 and 0_10 uses different
> executions paths.

The C++ broker only supports the 0-10 version.
The Java broker supports all of the above.

As to which version you want depends on your needs w.r.t the protocol.
All these versions have been deployed in production.

The company that I work for only supports the C++ broker, so all the
production deployments that I deal with have been using the 0-10
client.
Folks who have used the others versions in production could provide
more info about the pre 0-10 versions.

The Java client in general has decent performance and is reasonably stable.
There are no known memory issues on the Java client that I know of.
There are some known deadlock issues and performance issues for
certain use cases (ex synchronous publish).

My advise is to write a POC for what you are planning to do and
conduct testing to figure out if performance and stability meets your
expectations.

Regards,

Rajith

> thanks,
> Amila.
>
>>
>> Rajith
>>
>> On Sat, Jul 30, 2011 at 9:18 AM, Amila Suriarachchi
>> <am...@gmail.com> wrote:
>> > I saw by default qpid client send messages with AMQP version 10. how can
>> I
>> > change that to 9.1 or 8.0 etc ..
>> >
>> > thanks,
>> > Amila.
>> >
>> > --
>> > Amila Suriarachchi
>> > WSO2 Inc.
>> > blog: http://amilachinthaka.blogspot.com/
>> >
>>
>> ---------------------------------------------------------------------
>> Apache Qpid - AMQP Messaging Implementation
>> Project:      http://qpid.apache.org
>> Use/Interact: mailto:users-subscribe@qpid.apache.org
>>
>>
>
>
> --
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
>

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org


Re: How to change the AMQP version when sending messages through JMS API

Posted by Amila Suriarachchi <am...@gmail.com>.
On Sat, Jul 30, 2011 at 7:20 PM, Rajith Attapattu <ra...@gmail.com>wrote:

> Use -Dqpid.amqp.version="0-8" for 0-8 version and for 0-91 use
> -Dqpid.amqp.version="0-91".
>

One more thing. Which version is the most stable one?

As I saw in the code versions 0_8, 0_9, 0_91 and 0_10 uses different
executions paths.

thanks,
Amila.

>
> Rajith
>
> On Sat, Jul 30, 2011 at 9:18 AM, Amila Suriarachchi
> <am...@gmail.com> wrote:
> > I saw by default qpid client send messages with AMQP version 10. how can
> I
> > change that to 9.1 or 8.0 etc ..
> >
> > thanks,
> > Amila.
> >
> > --
> > Amila Suriarachchi
> > WSO2 Inc.
> > blog: http://amilachinthaka.blogspot.com/
> >
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Re: How to change the AMQP version when sending messages through JMS API

Posted by Amila Suriarachchi <am...@gmail.com>.
that works

thanks,
Amila.

On Sat, Jul 30, 2011 at 7:20 PM, Rajith Attapattu <ra...@gmail.com>wrote:

> Use -Dqpid.amqp.version="0-8" for 0-8 version and for 0-91 use
> -Dqpid.amqp.version="0-91".
>
> Rajith
>
> On Sat, Jul 30, 2011 at 9:18 AM, Amila Suriarachchi
> <am...@gmail.com> wrote:
> > I saw by default qpid client send messages with AMQP version 10. how can
> I
> > change that to 9.1 or 8.0 etc ..
> >
> > thanks,
> > Amila.
> >
> > --
> > Amila Suriarachchi
> > WSO2 Inc.
> > blog: http://amilachinthaka.blogspot.com/
> >
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

Re: How to change the AMQP version when sending messages through JMS API

Posted by Rajith Attapattu <ra...@gmail.com>.
Use -Dqpid.amqp.version="0-8" for 0-8 version and for 0-91 use
-Dqpid.amqp.version="0-91".

Rajith

On Sat, Jul 30, 2011 at 9:18 AM, Amila Suriarachchi
<am...@gmail.com> wrote:
> I saw by default qpid client send messages with AMQP version 10. how can I
> change that to 9.1 or 8.0 etc ..
>
> thanks,
> Amila.
>
> --
> Amila Suriarachchi
> WSO2 Inc.
> blog: http://amilachinthaka.blogspot.com/
>

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org