You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stratos.apache.org by Gayan Gunarathne <ga...@wso2.com> on 2014/08/25 13:49:00 UTC

Stratos Python Cartridge Agent

Hi All,

With related to the python cartridge agent , Dinesh and myself do some
research related to the Apache ActiveMQ connectivity using the python
client.

Following our findings on this.

*AMQP*

AFAWU we need to have  pyactivemq , which is a Python wrapper for the
ActiveMQ C++ Library,[1] But we won't be able to use this module as it is
platform dependent.
Also we checked the following client libraries as well(those
are recommended with the RabbitMQ)
[3] py-amqplib
[4] txAMQP
[5] pika
[6] Carrot (has copy right licence)

But we were unable to connect Apache ActiveMQ with those as well.(Even
through we can connect those with the RabbitMQ)

*STOMP[2]*

With the STOMP protocol , We were able to connect Apache ActiveMQ by using
the stomp module.[7]


As a summary,
It seems like we need to use STOMP to connect ActiveMQ. But still, WSO2
message broker is not supporting STOMP protocol.
IMO Shall we used the hybrid model for connect to the message queues. Such
that , we can use STOMP to connect the ActiveMQ and AMQP to connect WSO2
MB. WDYT?
With txAMQP[4] we were able to connect WSO2 MB using the qpid
amqp specifications.
Please share your suggestions and thoughts on this.


[1] http://activemq.apache.org/python.html
[2] http://activemq.apache.org/stomp.html
[3] http://barryp.org/software/py-amqplib/
[4] https://launchpad.net/txamqp
[5] https://github.com/pika/pika
[6] https://pypi.python.org/pypi/carrot/
[7] https://github.com/jasonrbriggs/stomp.py

@Dinesh , Please add If I missed anything here.



Thanks,
Gayan


-- 


Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gayang@wso2.com  | mobile : +94 766819985

Re: Stratos Python Cartridge Agent

Posted by Gayan Gunarathne <ga...@wso2.com>.
Yeah. If we install libraries based on the platform (architecture and the
versions) , I think it is possible.

Currently do we have platform based library installations with new instance
spawning?

Thanks,
Gayan


On Fri, Aug 29, 2014 at 11:37 AM, chris snow <ch...@gmail.com> wrote:

> I would have thought that puppet would abstract the installation of
> the correct package for us:
>
> - puppet will be defined to install the package 'qpid-proton'
> - on ubuntu platforms, puppet will have the qpid-proton package
> defined with a dependency that first adds the apt-repository
> - on RHEL platforms, puppet will have the qpid-proton package defined
> with a dependency that first adds the EPEL repository
>
> The OS package management will take care of installing the package
> with the correct architecture (32 or 64 bit) and on ubuntu installing
> the correct version (trusty or precise).
>
> WDYT?
>
>
> On Fri, Aug 29, 2014 at 6:25 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
> > Thanks Chris.
> >
> > My concern is if we used the binaries based on the platform ,every-time
> we
> > need to get the platform details of the instance when new instance going
> to
> > spawn and download the relevant binaries based on that platform.
> >
> > As I noticed there are different set of binaries for the Ubuntu version
> as
> > well.
> >
> > As an example Ubuntu 12 has following set of binaries[1].Those binaries
> also
> > based on the architecture.(eg binary-amd64,binary-i386 etc)
> > Ubuntu 14 has different set of binaries[2] with the different
> architectures.
> > So If we used this every time we need to check the platform architecture
> > with version details and get the correct binaries based on the platform
> > before start the cartridge agent on the newly spawned instance.
> >
> > [1] http://ppa.launchpad.net/qpid/released/ubuntu/dists/precise/main/
> > [2] http://ppa.launchpad.net/qpid/released/ubuntu/dists/trusty/main/
> >
> > Thanks,
> > Gayan
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > http://ppa.launchpad.net/qpid/released/ubuntu/dists/precise/main/
> >
> >
> >
> >
> >
> > On Thu, Aug 28, 2014 at 9:24 PM, chris snow <ch...@gmail.com> wrote:
> >>
> >> Hi Gayan, yes, that link was for the broker, but I was hoping the same
> >> question had been asked for proton.
> >>
> >> I ended up sending an email to the proton list.  It seems there are
> >> binary packages [1] - did you find these?
> >>
> >> ---
> >> [1]
> >> http://qpid.2158936.n2.nabble.com/make-dist-for-proton-c-td7612705.html
> >>
> >> On Thu, Aug 28, 2014 at 1:05 PM, Gayan Gunarathne <ga...@wso2.com>
> wrote:
> >> > AFAIU we don't have make dist option here.I guess, they included the
> >> > install
> >> > option only.Even if we have make dist option I guess still we need to
> >> > make a
> >> > separate build for the each platform.Is n't?
> >> >
> >> > Also that link[1],even it is about the qpid message broker, I think
> they
> >> > are
> >> > talking about the same platform. WDYT?
> >> >
> >> > Thanks,
> >> > Gayan
> >> >
> >> >
> >> >
> >> > On Thu, Aug 28, 2014 at 4:52 PM, chris snow <ch...@gmail.com>
> wrote:
> >> >>
> >> >> Hi Gayan, is there a 'make dist' option [1]?
> >> >>
> >> >> ---
> >> >> [1]
> >> >>
> >> >>
> http://qpid.2158936.n2.nabble.com/How-to-deploy-the-broker-on-another-machine-td3400607.html#a3400632
> >> >>
> >> >>
> >> >> On Thu, Aug 28, 2014 at 11:20 AM, Gayan Gunarathne <ga...@wso2.com>
> >> >> wrote:
> >> >> > Hi Chris,
> >> >> >
> >> >> > AFAIR that build will added the attached file list (please find the
> >> >> > attached
> >> >> > document) to the Ubuntu and it uses those files.IMO with fedora
> build
> >> >> > that
> >> >> > files will be different and it will be platform dependent. WDYT?
> >> >> >
> >> >> > Thanks,
> >> >> > Gayan
> >> >> >
> >> >> >
> >> >> > On Thu, Aug 28, 2014 at 2:47 PM, chris snow <ch...@gmail.com>
> >> >> > wrote:
> >> >> >>
> >> >> >> Ah, ok.  So the problem is just that we need to setup a
> development
> >> >> >> environment to compile the qpid application?  After qpid has been
> >> >> >> compiled to a binary, the development environment is no longer
> >> >> >> required?  Can we use fedora to build a qpid binary for ubuntu?
> >> >> >>
> >> >> >>
> >> >> >> On Thu, Aug 28, 2014 at 9:47 AM, Gayan Gunarathne <
> gayang@wso2.com>
> >> >> >> wrote:
> >> >> >> > Yeah Chris.It is the command set for the fedora as mention in
> >> >> >> > their
> >> >> >> > read-me
> >> >> >> > file.
> >> >> >> >
> >> >> >> > For Ubuntu we can use the following command sets.
> >> >> >> >
> >> >> >> > # required dependencies
> >> >> >> > sudo apt-get install gcc cmake uuid-dev
> >> >> >> >
> >> >> >> > # dependencies needed for ssl support
> >> >> >> > sudo apt-get install libssl-dev
> >> >> >> >
> >> >> >> > # dependencies needed for bindings
> >> >> >> > sudo apt-get install swig python-dev ruby-dev php5-dev
> libperl-dev
> >> >> >> >
> >> >> >> > sudo apt-get install oracle-java8-installer
> >> >> >> >
> >> >> >> > sudo apt-get install python-epydoc
> >> >> >> >
> >> >> >> > Thanks,
> >> >> >> > Gayan
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > On Thu, Aug 28, 2014 at 12:53 PM, chris snow <
> chsnow123@gmail.com>
> >> >> >> > wrote:
> >> >> >> >>
> >> >> >> >> On Wed, Aug 27, 2014 at 6:26 AM, Gayan Gunarathne
> >> >> >> >> <ga...@wso2.com>
> >> >> >> >> wrote:
> >> >> >> >> > Hi Akila,
> >> >> >> >> >
> >> >> >> >> > When we tried with the Apache Qpid Proton-C library we did
> the
> >> >> >> >> > following
> >> >> >> >> > prerequisites.
> >> >> >> >> >
> >> >> >> >> >     # required dependencies
> >> >> >> >> >     yum install gcc cmake libuuid-devel
> >> >> >> >> >
> >> >> >> >> >     # dependencies needed for ssl support
> >> >> >> >> >     yum install openssl-devel
> >> >> >> >> >
> >> >> >> >> >     # dependencies needed for bindings
> >> >> >> >> >     yum install swig python-devel ruby-devel php-devel
> >> >> >> >> > perl-devel
> >> >> >> >> >
> >> >> >> >> >     yum install java-1.8.0-openjdk-devel
> >> >> >> >> >
> >> >> >> >> >     yum install epydoc
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > After that only we were able to build in the Ubuntu and run
> the
> >> >> >> >> > python
> >> >> >> >> > client with proton support.I guess for every platform we need
> >> >> >> >> > to
> >> >> >> >> > do
> >> >> >> >> > the
> >> >> >> >> > same
> >> >> >> >> > and have to maintain different settings for different
> >> >> >> >> > platform.WDYT?
> >> >> >> >> >
> >> >> >> >> Did you mean to say Ubuntu here? The commands above aren't for
> >> >> >> >> Ubuntu.
> >> >> >> >> >
> >> >> >> >> > When it comes to the large number of instance, we need to do
> >> >> >> >> > load
> >> >> >> >> > testing
> >> >> >> >> > with the STOMP protocol.Thanks for pointing out this.
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > Thanks,
> >> >> >> >> >
> >> >> >> >> > Gayan
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > On Wed, Aug 27, 2014 at 10:33 AM, Akila Ravihansa Perera
> >> >> >> >> > <ra...@wso2.com> wrote:
> >> >> >> >> >>
> >> >> >> >> >> Hi Gayan,
> >> >> >> >> >>
> >> >> >> >> >> What are the concerns/blockers for using Apache Qpid
> Proton-C
> >> >> >> >> >> library
> >> >> >> >> >> [1] with Python binding?
> >> >> >> >> >>
> >> >> >> >> >> As I understood, this is cross-platform compatible
> >> >> >> >> >> (Linux/Windows)
> >> >> >> >> >> and
> >> >> >> >> >> you do not need Java. However, there is a pure Java
> >> >> >> >> >> implementation
> >> >> >> >> >> but
> >> >> >> >> >> we can use C/Python binding. We will have to investigate
> this
> >> >> >> >> >> further
> >> >> >> >> >> though.
> >> >> >> >> >>
> >> >> >> >> >> Have we made an analysis of using STOMP vs AMQP as the
> >> >> >> >> >> communication
> >> >> >> >> >> protocol with MB for cartridge agent? We might have to
> >> >> >> >> >> consider
> >> >> >> >> >> this
> >> >> >> >> >> because with the upcoming Docker support there can be about
> >> >> >> >> >> 1000+
> >> >> >> >> >> instances communicating with the MB.
> >> >> >> >> >>
> >> >> >> >> >> [1] https://github.com/apache/qpid-proton
> >> >> >> >> >>
> >> >> >> >> >> On Tue, Aug 26, 2014 at 4:28 PM, Gayan Gunarathne
> >> >> >> >> >> <ga...@wso2.com>
> >> >> >> >> >> wrote:
> >> >> >> >> >> > Hi Chris,
> >> >> >> >> >> >
> >> >> >> >> >> > Thanks for adding the JIRA for ActiveMQ. Yeah It will be a
> >> >> >> >> >> > worth
> >> >> >> >> >> > addition.
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> > Thanks,
> >> >> >> >> >> > Gayan
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> > On Tue, Aug 26, 2014 at 4:14 PM, chris snow
> >> >> >> >> >> > <ch...@gmail.com>
> >> >> >> >> >> > wrote:
> >> >> >> >> >> >>
> >> >> >> >> >> >> I guess the agent will need to be configurable to support
> >> >> >> >> >> >> STOMP
> >> >> >> >> >> >> for
> >> >> >> >> >> >> ActiveMQ installations or AMQP for WSO2MB installations.
> >> >> >> >> >> >>
> >> >> >> >> >> >> Also, I raised this JIRA:
> >> >> >> >> >> >> https://issues.apache.org/jira/browse/AMQ-5332 - it
> won't
> >> >> >> >> >> >> happen
> >> >> >> >> >> >> in
> >> >> >> >> >> >> our timescales, but I thought it was worth adding as it
> >> >> >> >> >> >> seems
> >> >> >> >> >> >> a
> >> >> >> >> >> >> lot
> >> >> >> >> >> >> of
> >> >> >> >> >> >> people hit issues with ActiveMQ only supporting AMQP 1.0.
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >> On Tue, Aug 26, 2014 at 8:22 AM, Gayan Gunarathne
> >> >> >> >> >> >> <ga...@wso2.com>
> >> >> >> >> >> >> wrote:
> >> >> >> >> >> >> > Yeah Chris.
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > Exactly the problem we have.Currently lot of python
> amqp
> >> >> >> >> >> >> > agents
> >> >> >> >> >> >> > for
> >> >> >> >> >> >> > RabbitMQ
> >> >> >> >> >> >> > which supports AMQP 0-9.[1].
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > [1] https://www.rabbitmq.com/specification.html
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > Thanks,
> >> >> >> >> >> >> > Gayan
> >> >> >> >> >> >> >
> >> >> >> >> >> >> >
> >> >> >> >> >> >> >
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > On Tue, Aug 26, 2014 at 12:25 PM, chris snow
> >> >> >> >> >> >> > <ch...@gmail.com>
> >> >> >> >> >> >> > wrote:
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> Thanks Gayan!
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> What errors were you hitting?  The few clients I tried
> >> >> >> >> >> >> >> give
> >> >> >> >> >> >> >> me
> >> >> >> >> >> >> >> the
> >> >> >> >> >> >> >> error
> >> >> >> >> >> >> >> [1].
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> It seems some of f the python amqp libraries don't
> >> >> >> >> >> >> >> support
> >> >> >> >> >> >> >> version
> >> >> >> >> >> >> >> 1.0
> >> >> >> >> >> >> >> of
> >> >> >> >> >> >> >> AMQP?
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> ---
> >> >> >> >> >> >> >> [1]
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >>
> http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne
> >> >> >> >> >> >> >> <ga...@wso2.com>
> >> >> >> >> >> >> >> wrote:
> >> >> >> >> >> >> >> > Hi Chirs,
> >> >> >> >> >> >> >> >
> >> >> >> >> >> >> >> > Please find the python client library samples which
> we
> >> >> >> >> >> >> >> > are
> >> >> >> >> >> >> >> > tested.
> >> >> >> >> >> >> >> >
> >> >> >> >> >> >> >> >
> https://github.com/gayangunarathne/amqp_python_libraries
> >> >> >> >> >> >> >> >
> >> >> >> >> >> >> >> > Thanks,
> >> >> >> >> >> >> >> > Gayan
> >> >> >> >> >> >> >> >
> >> >> >> >> >> >> >> >
> >> >> >> >> >> >> >> > On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne
> >> >> >> >> >> >> >> > <ga...@wso2.com>
> >> >> >> >> >> >> >> > wrote:
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >> Hi Chris,
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >> Yeah. We looked that qpid messaging as well.For
> that
> >> >> >> >> >> >> >> >> we
> >> >> >> >> >> >> >> >> need
> >> >> >> >> >> >> >> >> that
> >> >> >> >> >> >> >> >> qpid
> >> >> >> >> >> >> >> >> proton library .Is n't?
> >> >> >> >> >> >> >> >> AFAIR it is based on CMake and It requires java
> >> >> >> >> >> >> >> >> also[1].
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >> Also we will share with you the samples we try with
> >> >> >> >> >> >> >> >> the
> >> >> >> >> >> >> >> >> amqp
> >> >> >> >> >> >> >> >> clients.
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >> [1]
> http://svn.apache.org/repos/asf/qpid/proton/trunk/README
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >> Thanks,
> >> >> >> >> >> >> >> >> Gayan
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >> On Mon, Aug 25, 2014 at 7:33 PM, chris snow
> >> >> >> >> >> >> >> >> <ch...@gmail.com>
> >> >> >> >> >> >> >> >> wrote:
> >> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >> >>> hi Gayan,
> >> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >> >>> What are the issues that you received from the
> >> >> >> >> >> >> >> >>> various
> >> >> >> >> >> >> >> >>> AMQP
> >> >> >> >> >> >> >> >>> libraries?
> >> >> >> >> >> >> >> >>> Do you have a code repo that I can take a look at
> to
> >> >> >> >> >> >> >> >>> try
> >> >> >> >> >> >> >> >>> and
> >> >> >> >> >> >> >> >>> replicate
> >> >> >> >> >> >> >> >>> the errors?
> >> >> >> >> >> >> >> >>> Did you investigate qpid [1]?
> >> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >> >>> Many thanks
> >> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >> >>> Chris
> >> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >> >>> ---
> >> >> >> >> >> >> >> >>> [1]
> >> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >> >>>
> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
> >> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >> >>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne
> >> >> >> >> >> >> >> >>> <ga...@wso2.com>
> >> >> >> >> >> >> >> >>> wrote:
> >> >> >> >> >> >> >> >>> > Hi Chris,
> >> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >> >>> > We try to replace our java cartridge agent with
> >> >> >> >> >> >> >> >>> > the
> >> >> >> >> >> >> >> >>> > python
> >> >> >> >> >> >> >> >>> > as
> >> >> >> >> >> >> >> >>> > after
> >> >> >> >> >> >> >> >>> > that we
> >> >> >> >> >> >> >> >>> > can remove the java dependency from the
> cartridge
> >> >> >> >> >> >> >> >>> > itself.I
> >> >> >> >> >> >> >> >>> > guess
> >> >> >> >> >> >> >> >>> > this
> >> >> >> >> >> >> >> >>> > is
> >> >> >> >> >> >> >> >>> > also vital for the Docker support too.
> >> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >> >>> > In Apache ActiveMQ site also AMQP support is
> based
> >> >> >> >> >> >> >> >>> > on
> >> >> >> >> >> >> >> >>> > the
> >> >> >> >> >> >> >> >>> > JMS/AMQP[1].
> >> >> >> >> >> >> >> >>> > I
> >> >> >> >> >> >> >> >>> > guess message broker implementation will be
> >> >> >> >> >> >> >> >>> > different
> >> >> >> >> >> >> >> >>> > from
> >> >> >> >> >> >> >> >>> > one
> >> >> >> >> >> >> >> >>> > MQ
> >> >> >> >> >> >> >> >>> > to
> >> >> >> >> >> >> >> >>> > other
> >> >> >> >> >> >> >> >>> > as some python client which able to connect with
> >> >> >> >> >> >> >> >>> > RabbitMQ
> >> >> >> >> >> >> >> >>> > successfully
> >> >> >> >> >> >> >> >>> > ,still fails with the ActiveMQ.
> >> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >> >>> > [1] http://activemq.apache.org/amqp.html
> >> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >> >>> > Thanks,
> >> >> >> >> >> >> >> >>> > Gayan
> >> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >> >>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow
> >> >> >> >> >> >> >> >>> > <ch...@gmail.com>
> >> >> >> >> >> >> >> >>> > wrote:
> >> >> >> >> >> >> >> >>> >>
> >> >> >> >> >> >> >> >>> >> Is the issue because we currently have a mix of
> >> >> >> >> >> >> >> >>> >> JMS/AMQP/Jndi?
> >> >> >> >> >> >> >> >>> >> If
> >> >> >> >> >> >> >> >>> >> we
> >> >> >> >> >> >> >> >>> >> had a
> >> >> >> >> >> >> >> >>> >> pure AMQP approach would these problems go
> away?
> >> >> >> >> >> >> >> >>> >> AFAIK,
> >> >> >> >> >> >> >> >>> >> one
> >> >> >> >> >> >> >> >>> >> of
> >> >> >> >> >> >> >> >>> >> the
> >> >> >> >> >> >> >> >>> >> drivers
> >> >> >> >> >> >> >> >>> >> for AMQP was interoperability with all
> languages,
> >> >> >> >> >> >> >> >>> >> rather
> >> >> >> >> >> >> >> >>> >> than
> >> >> >> >> >> >> >> >>> >> jms
> >> >> >> >> >> >> >> >>> >> which is
> >> >> >> >> >> >> >> >>> >> focused on Java.
> >> >> >> >> >> >> >> >>> >>
> >> >> >> >> >> >> >> >>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne"
> >> >> >> >> >> >> >> >>> >> <ga...@wso2.com>
> >> >> >> >> >> >> >> >>> >> wrote:
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>> Hi All,
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>> With related to the python cartridge agent ,
> >> >> >> >> >> >> >> >>> >>> Dinesh
> >> >> >> >> >> >> >> >>> >>> and
> >> >> >> >> >> >> >> >>> >>> myself
> >> >> >> >> >> >> >> >>> >>> do
> >> >> >> >> >> >> >> >>> >>> some
> >> >> >> >> >> >> >> >>> >>> research related to the Apache ActiveMQ
> >> >> >> >> >> >> >> >>> >>> connectivity
> >> >> >> >> >> >> >> >>> >>> using
> >> >> >> >> >> >> >> >>> >>> the
> >> >> >> >> >> >> >> >>> >>> python
> >> >> >> >> >> >> >> >>> >>> client.
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>> Following our findings on this.
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>> AMQP
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>> AFAWU we need to have  pyactivemq , which is a
> >> >> >> >> >> >> >> >>> >>> Python
> >> >> >> >> >> >> >> >>> >>> wrapper
> >> >> >> >> >> >> >> >>> >>> for
> >> >> >> >> >> >> >> >>> >>> the
> >> >> >> >> >> >> >> >>> >>> ActiveMQ C++ Library,[1] But we won't be able
> to
> >> >> >> >> >> >> >> >>> >>> use
> >> >> >> >> >> >> >> >>> >>> this
> >> >> >> >> >> >> >> >>> >>> module
> >> >> >> >> >> >> >> >>> >>> as
> >> >> >> >> >> >> >> >>> >>> it is
> >> >> >> >> >> >> >> >>> >>> platform dependent.
> >> >> >> >> >> >> >> >>> >>> Also we checked the following client libraries
> >> >> >> >> >> >> >> >>> >>> as
> >> >> >> >> >> >> >> >>> >>> well(those
> >> >> >> >> >> >> >> >>> >>> are
> >> >> >> >> >> >> >> >>> >>> recommended with the RabbitMQ)
> >> >> >> >> >> >> >> >>> >>> [3] py-amqplib
> >> >> >> >> >> >> >> >>> >>> [4] txAMQP
> >> >> >> >> >> >> >> >>> >>> [5] pika
> >> >> >> >> >> >> >> >>> >>> [6] Carrot (has copy right licence)
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>> But we were unable to connect Apache ActiveMQ
> >> >> >> >> >> >> >> >>> >>> with
> >> >> >> >> >> >> >> >>> >>> those
> >> >> >> >> >> >> >> >>> >>> as
> >> >> >> >> >> >> >> >>> >>> well.(Even
> >> >> >> >> >> >> >> >>> >>> through we can connect those with the
> RabbitMQ)
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>> STOMP[2]
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>> With the STOMP protocol , We were able to
> >> >> >> >> >> >> >> >>> >>> connect
> >> >> >> >> >> >> >> >>> >>> Apache
> >> >> >> >> >> >> >> >>> >>> ActiveMQ
> >> >> >> >> >> >> >> >>> >>> by
> >> >> >> >> >> >> >> >>> >>> using the stomp module.[7]
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>> As a summary,
> >> >> >> >> >> >> >> >>> >>> It seems like we need to use STOMP to connect
> >> >> >> >> >> >> >> >>> >>> ActiveMQ.
> >> >> >> >> >> >> >> >>> >>> But
> >> >> >> >> >> >> >> >>> >>> still,
> >> >> >> >> >> >> >> >>> >>> WSO2
> >> >> >> >> >> >> >> >>> >>> message broker is not supporting STOMP
> protocol.
> >> >> >> >> >> >> >> >>> >>> IMO Shall we used the hybrid model for connect
> >> >> >> >> >> >> >> >>> >>> to
> >> >> >> >> >> >> >> >>> >>> the
> >> >> >> >> >> >> >> >>> >>> message
> >> >> >> >> >> >> >> >>> >>> queues.
> >> >> >> >> >> >> >> >>> >>> Such that , we can use STOMP to connect the
> >> >> >> >> >> >> >> >>> >>> ActiveMQ
> >> >> >> >> >> >> >> >>> >>> and
> >> >> >> >> >> >> >> >>> >>> AMQP
> >> >> >> >> >> >> >> >>> >>> to
> >> >> >> >> >> >> >> >>> >>> connect
> >> >> >> >> >> >> >> >>> >>> WSO2 MB. WDYT?
> >> >> >> >> >> >> >> >>> >>> With txAMQP[4] we were able to connect WSO2 MB
> >> >> >> >> >> >> >> >>> >>> using
> >> >> >> >> >> >> >> >>> >>> the
> >> >> >> >> >> >> >> >>> >>> qpid
> >> >> >> >> >> >> >> >>> >>> amqp
> >> >> >> >> >> >> >> >>> >>> specifications.
> >> >> >> >> >> >> >> >>> >>> Please share your suggestions and thoughts on
> >> >> >> >> >> >> >> >>> >>> this.
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>> [1] http://activemq.apache.org/python.html
> >> >> >> >> >> >> >> >>> >>> [2] http://activemq.apache.org/stomp.html
> >> >> >> >> >> >> >> >>> >>> [3] http://barryp.org/software/py-amqplib/
> >> >> >> >> >> >> >> >>> >>> [4] https://launchpad.net/txamqp
> >> >> >> >> >> >> >> >>> >>> [5] https://github.com/pika/pika
> >> >> >> >> >> >> >> >>> >>> [6] https://pypi.python.org/pypi/carrot/
> >> >> >> >> >> >> >> >>> >>> [7] https://github.com/jasonrbriggs/stomp.py
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>> @Dinesh , Please add If I missed anything
> here.
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>> Thanks,
> >> >> >> >> >> >> >> >>> >>> Gayan
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>> --
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >>> Gayan Gunarathne
> >> >> >> >> >> >> >> >>> >>> Technical Lead
> >> >> >> >> >> >> >> >>> >>> WSO2 Inc. (http://wso2.com)
> >> >> >> >> >> >> >> >>> >>> email  : gayang@wso2.com  | mobile : +94
> >> >> >> >> >> >> >> >>> >>> 766819985
> >> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >> >>> > --
> >> >> >> >> >> >> >> >>> > Best Regards,
> >> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >> >>> > Gayan Gunarathne
> >> >> >> >> >> >> >> >>> > Technical Lead
> >> >> >> >> >> >> >> >>> > WSO2 Inc. (http://wso2.com)
> >> >> >> >> >> >> >> >>> > email  : gayang@wso2.com  | mobile : +94
> 766819985
> >> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >> --
> >> >> >> >> >> >> >> >> Best Regards,
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >> Gayan Gunarathne
> >> >> >> >> >> >> >> >> Technical Lead
> >> >> >> >> >> >> >> >> WSO2 Inc. (http://wso2.com)
> >> >> >> >> >> >> >> >> email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> >
> >> >> >> >> >> >> >> >
> >> >> >> >> >> >> >> >
> >> >> >> >> >> >> >> >
> >> >> >> >> >> >> >> > --
> >> >> >> >> >> >> >> > Best Regards,
> >> >> >> >> >> >> >> >
> >> >> >> >> >> >> >> > Gayan Gunarathne
> >> >> >> >> >> >> >> > Technical Lead
> >> >> >> >> >> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> >> >> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >> >> >> >
> >> >> >> >> >> >> >
> >> >> >> >> >> >> >
> >> >> >> >> >> >> >
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > --
> >> >> >> >> >> >> > Best Regards,
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > Gayan Gunarathne
> >> >> >> >> >> >> > Technical Lead
> >> >> >> >> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> >> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> > --
> >> >> >> >> >> > Best Regards,
> >> >> >> >> >> >
> >> >> >> >> >> > Gayan Gunarathne
> >> >> >> >> >> > Technical Lead
> >> >> >> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >> >
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> --
> >> >> >> >> >> Akila Ravihansa Perera
> >> >> >> >> >> WSO2 Inc
> >> >> >> >> >>
> >> >> >> >> >> Blog: http://ravihansa3000.blogspot.com
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > --
> >> >> >> >> > Best Regards,
> >> >> >> >> >
> >> >> >> >> > Gayan Gunarathne
> >> >> >> >> > Technical Lead
> >> >> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > --
> >> >> >> > Best Regards,
> >> >> >> >
> >> >> >> > Gayan Gunarathne
> >> >> >> > Technical Lead
> >> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Best Regards,
> >> >> >
> >> >> > Gayan Gunarathne
> >> >> > Technical Lead
> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Best Regards,
> >> >
> >> > Gayan Gunarathne
> >> > Technical Lead
> >> > WSO2 Inc. (http://wso2.com)
> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >
> >
> >
> >
> >
> > --
> > Best Regards,
> >
> > Gayan Gunarathne
> > Technical Lead
> > WSO2 Inc. (http://wso2.com)
> > email  : gayang@wso2.com  | mobile : +94 766819985
> >
>



-- 
Best Regards,

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gayang@wso2.com  | mobile : +94 766819985

Re: Stratos Python Cartridge Agent

Posted by chris snow <ch...@gmail.com>.
I would have thought that puppet would abstract the installation of
the correct package for us:

- puppet will be defined to install the package 'qpid-proton'
- on ubuntu platforms, puppet will have the qpid-proton package
defined with a dependency that first adds the apt-repository
- on RHEL platforms, puppet will have the qpid-proton package defined
with a dependency that first adds the EPEL repository

The OS package management will take care of installing the package
with the correct architecture (32 or 64 bit) and on ubuntu installing
the correct version (trusty or precise).

WDYT?


On Fri, Aug 29, 2014 at 6:25 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
> Thanks Chris.
>
> My concern is if we used the binaries based on the platform ,every-time we
> need to get the platform details of the instance when new instance going to
> spawn and download the relevant binaries based on that platform.
>
> As I noticed there are different set of binaries for the Ubuntu version as
> well.
>
> As an example Ubuntu 12 has following set of binaries[1].Those binaries also
> based on the architecture.(eg binary-amd64,binary-i386 etc)
> Ubuntu 14 has different set of binaries[2] with the different architectures.
> So If we used this every time we need to check the platform architecture
> with version details and get the correct binaries based on the platform
> before start the cartridge agent on the newly spawned instance.
>
> [1] http://ppa.launchpad.net/qpid/released/ubuntu/dists/precise/main/
> [2] http://ppa.launchpad.net/qpid/released/ubuntu/dists/trusty/main/
>
> Thanks,
> Gayan
>
>
>
>
>
>
>
>
>
>
> http://ppa.launchpad.net/qpid/released/ubuntu/dists/precise/main/
>
>
>
>
>
> On Thu, Aug 28, 2014 at 9:24 PM, chris snow <ch...@gmail.com> wrote:
>>
>> Hi Gayan, yes, that link was for the broker, but I was hoping the same
>> question had been asked for proton.
>>
>> I ended up sending an email to the proton list.  It seems there are
>> binary packages [1] - did you find these?
>>
>> ---
>> [1]
>> http://qpid.2158936.n2.nabble.com/make-dist-for-proton-c-td7612705.html
>>
>> On Thu, Aug 28, 2014 at 1:05 PM, Gayan Gunarathne <ga...@wso2.com> wrote:
>> > AFAIU we don't have make dist option here.I guess, they included the
>> > install
>> > option only.Even if we have make dist option I guess still we need to
>> > make a
>> > separate build for the each platform.Is n't?
>> >
>> > Also that link[1],even it is about the qpid message broker, I think they
>> > are
>> > talking about the same platform. WDYT?
>> >
>> > Thanks,
>> > Gayan
>> >
>> >
>> >
>> > On Thu, Aug 28, 2014 at 4:52 PM, chris snow <ch...@gmail.com> wrote:
>> >>
>> >> Hi Gayan, is there a 'make dist' option [1]?
>> >>
>> >> ---
>> >> [1]
>> >>
>> >> http://qpid.2158936.n2.nabble.com/How-to-deploy-the-broker-on-another-machine-td3400607.html#a3400632
>> >>
>> >>
>> >> On Thu, Aug 28, 2014 at 11:20 AM, Gayan Gunarathne <ga...@wso2.com>
>> >> wrote:
>> >> > Hi Chris,
>> >> >
>> >> > AFAIR that build will added the attached file list (please find the
>> >> > attached
>> >> > document) to the Ubuntu and it uses those files.IMO with fedora build
>> >> > that
>> >> > files will be different and it will be platform dependent. WDYT?
>> >> >
>> >> > Thanks,
>> >> > Gayan
>> >> >
>> >> >
>> >> > On Thu, Aug 28, 2014 at 2:47 PM, chris snow <ch...@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> Ah, ok.  So the problem is just that we need to setup a development
>> >> >> environment to compile the qpid application?  After qpid has been
>> >> >> compiled to a binary, the development environment is no longer
>> >> >> required?  Can we use fedora to build a qpid binary for ubuntu?
>> >> >>
>> >> >>
>> >> >> On Thu, Aug 28, 2014 at 9:47 AM, Gayan Gunarathne <ga...@wso2.com>
>> >> >> wrote:
>> >> >> > Yeah Chris.It is the command set for the fedora as mention in
>> >> >> > their
>> >> >> > read-me
>> >> >> > file.
>> >> >> >
>> >> >> > For Ubuntu we can use the following command sets.
>> >> >> >
>> >> >> > # required dependencies
>> >> >> > sudo apt-get install gcc cmake uuid-dev
>> >> >> >
>> >> >> > # dependencies needed for ssl support
>> >> >> > sudo apt-get install libssl-dev
>> >> >> >
>> >> >> > # dependencies needed for bindings
>> >> >> > sudo apt-get install swig python-dev ruby-dev php5-dev libperl-dev
>> >> >> >
>> >> >> > sudo apt-get install oracle-java8-installer
>> >> >> >
>> >> >> > sudo apt-get install python-epydoc
>> >> >> >
>> >> >> > Thanks,
>> >> >> > Gayan
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On Thu, Aug 28, 2014 at 12:53 PM, chris snow <ch...@gmail.com>
>> >> >> > wrote:
>> >> >> >>
>> >> >> >> On Wed, Aug 27, 2014 at 6:26 AM, Gayan Gunarathne
>> >> >> >> <ga...@wso2.com>
>> >> >> >> wrote:
>> >> >> >> > Hi Akila,
>> >> >> >> >
>> >> >> >> > When we tried with the Apache Qpid Proton-C library we did the
>> >> >> >> > following
>> >> >> >> > prerequisites.
>> >> >> >> >
>> >> >> >> >     # required dependencies
>> >> >> >> >     yum install gcc cmake libuuid-devel
>> >> >> >> >
>> >> >> >> >     # dependencies needed for ssl support
>> >> >> >> >     yum install openssl-devel
>> >> >> >> >
>> >> >> >> >     # dependencies needed for bindings
>> >> >> >> >     yum install swig python-devel ruby-devel php-devel
>> >> >> >> > perl-devel
>> >> >> >> >
>> >> >> >> >     yum install java-1.8.0-openjdk-devel
>> >> >> >> >
>> >> >> >> >     yum install epydoc
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > After that only we were able to build in the Ubuntu and run the
>> >> >> >> > python
>> >> >> >> > client with proton support.I guess for every platform we need
>> >> >> >> > to
>> >> >> >> > do
>> >> >> >> > the
>> >> >> >> > same
>> >> >> >> > and have to maintain different settings for different
>> >> >> >> > platform.WDYT?
>> >> >> >> >
>> >> >> >> Did you mean to say Ubuntu here? The commands above aren't for
>> >> >> >> Ubuntu.
>> >> >> >> >
>> >> >> >> > When it comes to the large number of instance, we need to do
>> >> >> >> > load
>> >> >> >> > testing
>> >> >> >> > with the STOMP protocol.Thanks for pointing out this.
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > Thanks,
>> >> >> >> >
>> >> >> >> > Gayan
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > On Wed, Aug 27, 2014 at 10:33 AM, Akila Ravihansa Perera
>> >> >> >> > <ra...@wso2.com> wrote:
>> >> >> >> >>
>> >> >> >> >> Hi Gayan,
>> >> >> >> >>
>> >> >> >> >> What are the concerns/blockers for using Apache Qpid Proton-C
>> >> >> >> >> library
>> >> >> >> >> [1] with Python binding?
>> >> >> >> >>
>> >> >> >> >> As I understood, this is cross-platform compatible
>> >> >> >> >> (Linux/Windows)
>> >> >> >> >> and
>> >> >> >> >> you do not need Java. However, there is a pure Java
>> >> >> >> >> implementation
>> >> >> >> >> but
>> >> >> >> >> we can use C/Python binding. We will have to investigate this
>> >> >> >> >> further
>> >> >> >> >> though.
>> >> >> >> >>
>> >> >> >> >> Have we made an analysis of using STOMP vs AMQP as the
>> >> >> >> >> communication
>> >> >> >> >> protocol with MB for cartridge agent? We might have to
>> >> >> >> >> consider
>> >> >> >> >> this
>> >> >> >> >> because with the upcoming Docker support there can be about
>> >> >> >> >> 1000+
>> >> >> >> >> instances communicating with the MB.
>> >> >> >> >>
>> >> >> >> >> [1] https://github.com/apache/qpid-proton
>> >> >> >> >>
>> >> >> >> >> On Tue, Aug 26, 2014 at 4:28 PM, Gayan Gunarathne
>> >> >> >> >> <ga...@wso2.com>
>> >> >> >> >> wrote:
>> >> >> >> >> > Hi Chris,
>> >> >> >> >> >
>> >> >> >> >> > Thanks for adding the JIRA for ActiveMQ. Yeah It will be a
>> >> >> >> >> > worth
>> >> >> >> >> > addition.
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > Thanks,
>> >> >> >> >> > Gayan
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > On Tue, Aug 26, 2014 at 4:14 PM, chris snow
>> >> >> >> >> > <ch...@gmail.com>
>> >> >> >> >> > wrote:
>> >> >> >> >> >>
>> >> >> >> >> >> I guess the agent will need to be configurable to support
>> >> >> >> >> >> STOMP
>> >> >> >> >> >> for
>> >> >> >> >> >> ActiveMQ installations or AMQP for WSO2MB installations.
>> >> >> >> >> >>
>> >> >> >> >> >> Also, I raised this JIRA:
>> >> >> >> >> >> https://issues.apache.org/jira/browse/AMQ-5332 - it won't
>> >> >> >> >> >> happen
>> >> >> >> >> >> in
>> >> >> >> >> >> our timescales, but I thought it was worth adding as it
>> >> >> >> >> >> seems
>> >> >> >> >> >> a
>> >> >> >> >> >> lot
>> >> >> >> >> >> of
>> >> >> >> >> >> people hit issues with ActiveMQ only supporting AMQP 1.0.
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >> On Tue, Aug 26, 2014 at 8:22 AM, Gayan Gunarathne
>> >> >> >> >> >> <ga...@wso2.com>
>> >> >> >> >> >> wrote:
>> >> >> >> >> >> > Yeah Chris.
>> >> >> >> >> >> >
>> >> >> >> >> >> > Exactly the problem we have.Currently lot of python amqp
>> >> >> >> >> >> > agents
>> >> >> >> >> >> > for
>> >> >> >> >> >> > RabbitMQ
>> >> >> >> >> >> > which supports AMQP 0-9.[1].
>> >> >> >> >> >> >
>> >> >> >> >> >> > [1] https://www.rabbitmq.com/specification.html
>> >> >> >> >> >> >
>> >> >> >> >> >> > Thanks,
>> >> >> >> >> >> > Gayan
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> > On Tue, Aug 26, 2014 at 12:25 PM, chris snow
>> >> >> >> >> >> > <ch...@gmail.com>
>> >> >> >> >> >> > wrote:
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> Thanks Gayan!
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> What errors were you hitting?  The few clients I tried
>> >> >> >> >> >> >> give
>> >> >> >> >> >> >> me
>> >> >> >> >> >> >> the
>> >> >> >> >> >> >> error
>> >> >> >> >> >> >> [1].
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> It seems some of f the python amqp libraries don't
>> >> >> >> >> >> >> support
>> >> >> >> >> >> >> version
>> >> >> >> >> >> >> 1.0
>> >> >> >> >> >> >> of
>> >> >> >> >> >> >> AMQP?
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> ---
>> >> >> >> >> >> >> [1]
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne
>> >> >> >> >> >> >> <ga...@wso2.com>
>> >> >> >> >> >> >> wrote:
>> >> >> >> >> >> >> > Hi Chirs,
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> > Please find the python client library samples which we
>> >> >> >> >> >> >> > are
>> >> >> >> >> >> >> > tested.
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> > https://github.com/gayangunarathne/amqp_python_libraries
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> > Thanks,
>> >> >> >> >> >> >> > Gayan
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> > On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne
>> >> >> >> >> >> >> > <ga...@wso2.com>
>> >> >> >> >> >> >> > wrote:
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >> Hi Chris,
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >> Yeah. We looked that qpid messaging as well.For that
>> >> >> >> >> >> >> >> we
>> >> >> >> >> >> >> >> need
>> >> >> >> >> >> >> >> that
>> >> >> >> >> >> >> >> qpid
>> >> >> >> >> >> >> >> proton library .Is n't?
>> >> >> >> >> >> >> >> AFAIR it is based on CMake and It requires java
>> >> >> >> >> >> >> >> also[1].
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >> Also we will share with you the samples we try with
>> >> >> >> >> >> >> >> the
>> >> >> >> >> >> >> >> amqp
>> >> >> >> >> >> >> >> clients.
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >> [1]http://svn.apache.org/repos/asf/qpid/proton/trunk/README
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >> Thanks,
>> >> >> >> >> >> >> >> Gayan
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >> On Mon, Aug 25, 2014 at 7:33 PM, chris snow
>> >> >> >> >> >> >> >> <ch...@gmail.com>
>> >> >> >> >> >> >> >> wrote:
>> >> >> >> >> >> >> >>>
>> >> >> >> >> >> >> >>> hi Gayan,
>> >> >> >> >> >> >> >>>
>> >> >> >> >> >> >> >>> What are the issues that you received from the
>> >> >> >> >> >> >> >>> various
>> >> >> >> >> >> >> >>> AMQP
>> >> >> >> >> >> >> >>> libraries?
>> >> >> >> >> >> >> >>> Do you have a code repo that I can take a look at to
>> >> >> >> >> >> >> >>> try
>> >> >> >> >> >> >> >>> and
>> >> >> >> >> >> >> >>> replicate
>> >> >> >> >> >> >> >>> the errors?
>> >> >> >> >> >> >> >>> Did you investigate qpid [1]?
>> >> >> >> >> >> >> >>>
>> >> >> >> >> >> >> >>> Many thanks
>> >> >> >> >> >> >> >>>
>> >> >> >> >> >> >> >>> Chris
>> >> >> >> >> >> >> >>>
>> >> >> >> >> >> >> >>> ---
>> >> >> >> >> >> >> >>> [1]
>> >> >> >> >> >> >> >>>
>> >> >> >> >> >> >> >>>
>> >> >> >> >> >> >> >>>
>> >> >> >> >> >> >> >>>
>> >> >> >> >> >> >> >>>
>> >> >> >> >> >> >> >>>
>> >> >> >> >> >> >> >>>
>> >> >> >> >> >> >> >>> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
>> >> >> >> >> >> >> >>>
>> >> >> >> >> >> >> >>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne
>> >> >> >> >> >> >> >>> <ga...@wso2.com>
>> >> >> >> >> >> >> >>> wrote:
>> >> >> >> >> >> >> >>> > Hi Chris,
>> >> >> >> >> >> >> >>> >
>> >> >> >> >> >> >> >>> > We try to replace our java cartridge agent with
>> >> >> >> >> >> >> >>> > the
>> >> >> >> >> >> >> >>> > python
>> >> >> >> >> >> >> >>> > as
>> >> >> >> >> >> >> >>> > after
>> >> >> >> >> >> >> >>> > that we
>> >> >> >> >> >> >> >>> > can remove the java dependency from the cartridge
>> >> >> >> >> >> >> >>> > itself.I
>> >> >> >> >> >> >> >>> > guess
>> >> >> >> >> >> >> >>> > this
>> >> >> >> >> >> >> >>> > is
>> >> >> >> >> >> >> >>> > also vital for the Docker support too.
>> >> >> >> >> >> >> >>> >
>> >> >> >> >> >> >> >>> > In Apache ActiveMQ site also AMQP support is based
>> >> >> >> >> >> >> >>> > on
>> >> >> >> >> >> >> >>> > the
>> >> >> >> >> >> >> >>> > JMS/AMQP[1].
>> >> >> >> >> >> >> >>> > I
>> >> >> >> >> >> >> >>> > guess message broker implementation will be
>> >> >> >> >> >> >> >>> > different
>> >> >> >> >> >> >> >>> > from
>> >> >> >> >> >> >> >>> > one
>> >> >> >> >> >> >> >>> > MQ
>> >> >> >> >> >> >> >>> > to
>> >> >> >> >> >> >> >>> > other
>> >> >> >> >> >> >> >>> > as some python client which able to connect with
>> >> >> >> >> >> >> >>> > RabbitMQ
>> >> >> >> >> >> >> >>> > successfully
>> >> >> >> >> >> >> >>> > ,still fails with the ActiveMQ.
>> >> >> >> >> >> >> >>> >
>> >> >> >> >> >> >> >>> > [1] http://activemq.apache.org/amqp.html
>> >> >> >> >> >> >> >>> >
>> >> >> >> >> >> >> >>> > Thanks,
>> >> >> >> >> >> >> >>> > Gayan
>> >> >> >> >> >> >> >>> >
>> >> >> >> >> >> >> >>> >
>> >> >> >> >> >> >> >>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow
>> >> >> >> >> >> >> >>> > <ch...@gmail.com>
>> >> >> >> >> >> >> >>> > wrote:
>> >> >> >> >> >> >> >>> >>
>> >> >> >> >> >> >> >>> >> Is the issue because we currently have a mix of
>> >> >> >> >> >> >> >>> >> JMS/AMQP/Jndi?
>> >> >> >> >> >> >> >>> >> If
>> >> >> >> >> >> >> >>> >> we
>> >> >> >> >> >> >> >>> >> had a
>> >> >> >> >> >> >> >>> >> pure AMQP approach would these problems go away?
>> >> >> >> >> >> >> >>> >> AFAIK,
>> >> >> >> >> >> >> >>> >> one
>> >> >> >> >> >> >> >>> >> of
>> >> >> >> >> >> >> >>> >> the
>> >> >> >> >> >> >> >>> >> drivers
>> >> >> >> >> >> >> >>> >> for AMQP was interoperability with all languages,
>> >> >> >> >> >> >> >>> >> rather
>> >> >> >> >> >> >> >>> >> than
>> >> >> >> >> >> >> >>> >> jms
>> >> >> >> >> >> >> >>> >> which is
>> >> >> >> >> >> >> >>> >> focused on Java.
>> >> >> >> >> >> >> >>> >>
>> >> >> >> >> >> >> >>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne"
>> >> >> >> >> >> >> >>> >> <ga...@wso2.com>
>> >> >> >> >> >> >> >>> >> wrote:
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>> Hi All,
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>> With related to the python cartridge agent ,
>> >> >> >> >> >> >> >>> >>> Dinesh
>> >> >> >> >> >> >> >>> >>> and
>> >> >> >> >> >> >> >>> >>> myself
>> >> >> >> >> >> >> >>> >>> do
>> >> >> >> >> >> >> >>> >>> some
>> >> >> >> >> >> >> >>> >>> research related to the Apache ActiveMQ
>> >> >> >> >> >> >> >>> >>> connectivity
>> >> >> >> >> >> >> >>> >>> using
>> >> >> >> >> >> >> >>> >>> the
>> >> >> >> >> >> >> >>> >>> python
>> >> >> >> >> >> >> >>> >>> client.
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>> Following our findings on this.
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>> AMQP
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>> AFAWU we need to have  pyactivemq , which is a
>> >> >> >> >> >> >> >>> >>> Python
>> >> >> >> >> >> >> >>> >>> wrapper
>> >> >> >> >> >> >> >>> >>> for
>> >> >> >> >> >> >> >>> >>> the
>> >> >> >> >> >> >> >>> >>> ActiveMQ C++ Library,[1] But we won't be able to
>> >> >> >> >> >> >> >>> >>> use
>> >> >> >> >> >> >> >>> >>> this
>> >> >> >> >> >> >> >>> >>> module
>> >> >> >> >> >> >> >>> >>> as
>> >> >> >> >> >> >> >>> >>> it is
>> >> >> >> >> >> >> >>> >>> platform dependent.
>> >> >> >> >> >> >> >>> >>> Also we checked the following client libraries
>> >> >> >> >> >> >> >>> >>> as
>> >> >> >> >> >> >> >>> >>> well(those
>> >> >> >> >> >> >> >>> >>> are
>> >> >> >> >> >> >> >>> >>> recommended with the RabbitMQ)
>> >> >> >> >> >> >> >>> >>> [3] py-amqplib
>> >> >> >> >> >> >> >>> >>> [4] txAMQP
>> >> >> >> >> >> >> >>> >>> [5] pika
>> >> >> >> >> >> >> >>> >>> [6] Carrot (has copy right licence)
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>> But we were unable to connect Apache ActiveMQ
>> >> >> >> >> >> >> >>> >>> with
>> >> >> >> >> >> >> >>> >>> those
>> >> >> >> >> >> >> >>> >>> as
>> >> >> >> >> >> >> >>> >>> well.(Even
>> >> >> >> >> >> >> >>> >>> through we can connect those with the RabbitMQ)
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>> STOMP[2]
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>> With the STOMP protocol , We were able to
>> >> >> >> >> >> >> >>> >>> connect
>> >> >> >> >> >> >> >>> >>> Apache
>> >> >> >> >> >> >> >>> >>> ActiveMQ
>> >> >> >> >> >> >> >>> >>> by
>> >> >> >> >> >> >> >>> >>> using the stomp module.[7]
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>> As a summary,
>> >> >> >> >> >> >> >>> >>> It seems like we need to use STOMP to connect
>> >> >> >> >> >> >> >>> >>> ActiveMQ.
>> >> >> >> >> >> >> >>> >>> But
>> >> >> >> >> >> >> >>> >>> still,
>> >> >> >> >> >> >> >>> >>> WSO2
>> >> >> >> >> >> >> >>> >>> message broker is not supporting STOMP protocol.
>> >> >> >> >> >> >> >>> >>> IMO Shall we used the hybrid model for connect
>> >> >> >> >> >> >> >>> >>> to
>> >> >> >> >> >> >> >>> >>> the
>> >> >> >> >> >> >> >>> >>> message
>> >> >> >> >> >> >> >>> >>> queues.
>> >> >> >> >> >> >> >>> >>> Such that , we can use STOMP to connect the
>> >> >> >> >> >> >> >>> >>> ActiveMQ
>> >> >> >> >> >> >> >>> >>> and
>> >> >> >> >> >> >> >>> >>> AMQP
>> >> >> >> >> >> >> >>> >>> to
>> >> >> >> >> >> >> >>> >>> connect
>> >> >> >> >> >> >> >>> >>> WSO2 MB. WDYT?
>> >> >> >> >> >> >> >>> >>> With txAMQP[4] we were able to connect WSO2 MB
>> >> >> >> >> >> >> >>> >>> using
>> >> >> >> >> >> >> >>> >>> the
>> >> >> >> >> >> >> >>> >>> qpid
>> >> >> >> >> >> >> >>> >>> amqp
>> >> >> >> >> >> >> >>> >>> specifications.
>> >> >> >> >> >> >> >>> >>> Please share your suggestions and thoughts on
>> >> >> >> >> >> >> >>> >>> this.
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>> [1] http://activemq.apache.org/python.html
>> >> >> >> >> >> >> >>> >>> [2] http://activemq.apache.org/stomp.html
>> >> >> >> >> >> >> >>> >>> [3] http://barryp.org/software/py-amqplib/
>> >> >> >> >> >> >> >>> >>> [4] https://launchpad.net/txamqp
>> >> >> >> >> >> >> >>> >>> [5] https://github.com/pika/pika
>> >> >> >> >> >> >> >>> >>> [6] https://pypi.python.org/pypi/carrot/
>> >> >> >> >> >> >> >>> >>> [7] https://github.com/jasonrbriggs/stomp.py
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>> @Dinesh , Please add If I missed anything here.
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>> Thanks,
>> >> >> >> >> >> >> >>> >>> Gayan
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>> --
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >>> Gayan Gunarathne
>> >> >> >> >> >> >> >>> >>> Technical Lead
>> >> >> >> >> >> >> >>> >>> WSO2 Inc. (http://wso2.com)
>> >> >> >> >> >> >> >>> >>> email  : gayang@wso2.com  | mobile : +94
>> >> >> >> >> >> >> >>> >>> 766819985
>> >> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >> >>> >
>> >> >> >> >> >> >> >>> >
>> >> >> >> >> >> >> >>> >
>> >> >> >> >> >> >> >>> >
>> >> >> >> >> >> >> >>> > --
>> >> >> >> >> >> >> >>> > Best Regards,
>> >> >> >> >> >> >> >>> >
>> >> >> >> >> >> >> >>> > Gayan Gunarathne
>> >> >> >> >> >> >> >>> > Technical Lead
>> >> >> >> >> >> >> >>> > WSO2 Inc. (http://wso2.com)
>> >> >> >> >> >> >> >>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >> >> >> >>> >
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >> --
>> >> >> >> >> >> >> >> Best Regards,
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >> Gayan Gunarathne
>> >> >> >> >> >> >> >> Technical Lead
>> >> >> >> >> >> >> >> WSO2 Inc. (http://wso2.com)
>> >> >> >> >> >> >> >> email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >> >> >> >>
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> > --
>> >> >> >> >> >> >> > Best Regards,
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >> > Gayan Gunarathne
>> >> >> >> >> >> >> > Technical Lead
>> >> >> >> >> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> >> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> > --
>> >> >> >> >> >> > Best Regards,
>> >> >> >> >> >> >
>> >> >> >> >> >> > Gayan Gunarathne
>> >> >> >> >> >> > Technical Lead
>> >> >> >> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > --
>> >> >> >> >> > Best Regards,
>> >> >> >> >> >
>> >> >> >> >> > Gayan Gunarathne
>> >> >> >> >> > Technical Lead
>> >> >> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >> >
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> --
>> >> >> >> >> Akila Ravihansa Perera
>> >> >> >> >> WSO2 Inc
>> >> >> >> >>
>> >> >> >> >> Blog: http://ravihansa3000.blogspot.com
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > --
>> >> >> >> > Best Regards,
>> >> >> >> >
>> >> >> >> > Gayan Gunarathne
>> >> >> >> > Technical Lead
>> >> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > Best Regards,
>> >> >> >
>> >> >> > Gayan Gunarathne
>> >> >> > Technical Lead
>> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Best Regards,
>> >> >
>> >> > Gayan Gunarathne
>> >> > Technical Lead
>> >> > WSO2 Inc. (http://wso2.com)
>> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >
>> >
>> >
>> >
>> >
>> > --
>> > Best Regards,
>> >
>> > Gayan Gunarathne
>> > Technical Lead
>> > WSO2 Inc. (http://wso2.com)
>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >
>
>
>
>
> --
> Best Regards,
>
> Gayan Gunarathne
> Technical Lead
> WSO2 Inc. (http://wso2.com)
> email  : gayang@wso2.com  | mobile : +94 766819985
>

Re: Stratos Python Cartridge Agent

Posted by Gayan Gunarathne <ga...@wso2.com>.
Thanks Chris.

My concern is if we used the binaries based on the platform ,every-time we
need to get the platform details of the instance when new instance going to
spawn and download the relevant binaries based on that platform.

As I noticed there are different set of binaries for the Ubuntu version as
well.

As an example Ubuntu 12 has following set of binaries[1].Those binaries
also based on the architecture.(eg binary-amd64,binary-i386 etc)
Ubuntu 14 has different set of binaries[2] with the different architectures.
So If we used this every time we need to check the platform architecture
with version details and get the correct binaries based on the platform
before start the cartridge agent on the newly spawned instance.

[1] http://ppa.launchpad.net/qpid/released/ubuntu/dists/precise/main/
[2] http://ppa.launchpad.net/qpid/released/ubuntu/dists/trusty/main/

Thanks,
Gayan










http://ppa.launchpad.net/qpid/released/ubuntu/dists/precise/main/





On Thu, Aug 28, 2014 at 9:24 PM, chris snow <ch...@gmail.com> wrote:

> Hi Gayan, yes, that link was for the broker, but I was hoping the same
> question had been asked for proton.
>
> I ended up sending an email to the proton list.  It seems there are
> binary packages [1] - did you find these?
>
> ---
> [1]
> http://qpid.2158936.n2.nabble.com/make-dist-for-proton-c-td7612705.html
>
> On Thu, Aug 28, 2014 at 1:05 PM, Gayan Gunarathne <ga...@wso2.com> wrote:
> > AFAIU we don't have make dist option here.I guess, they included the
> install
> > option only.Even if we have make dist option I guess still we need to
> make a
> > separate build for the each platform.Is n't?
> >
> > Also that link[1],even it is about the qpid message broker, I think they
> are
> > talking about the same platform. WDYT?
> >
> > Thanks,
> > Gayan
> >
> >
> >
> > On Thu, Aug 28, 2014 at 4:52 PM, chris snow <ch...@gmail.com> wrote:
> >>
> >> Hi Gayan, is there a 'make dist' option [1]?
> >>
> >> ---
> >> [1]
> >>
> http://qpid.2158936.n2.nabble.com/How-to-deploy-the-broker-on-another-machine-td3400607.html#a3400632
> >>
> >>
> >> On Thu, Aug 28, 2014 at 11:20 AM, Gayan Gunarathne <ga...@wso2.com>
> >> wrote:
> >> > Hi Chris,
> >> >
> >> > AFAIR that build will added the attached file list (please find the
> >> > attached
> >> > document) to the Ubuntu and it uses those files.IMO with fedora build
> >> > that
> >> > files will be different and it will be platform dependent. WDYT?
> >> >
> >> > Thanks,
> >> > Gayan
> >> >
> >> >
> >> > On Thu, Aug 28, 2014 at 2:47 PM, chris snow <ch...@gmail.com>
> wrote:
> >> >>
> >> >> Ah, ok.  So the problem is just that we need to setup a development
> >> >> environment to compile the qpid application?  After qpid has been
> >> >> compiled to a binary, the development environment is no longer
> >> >> required?  Can we use fedora to build a qpid binary for ubuntu?
> >> >>
> >> >>
> >> >> On Thu, Aug 28, 2014 at 9:47 AM, Gayan Gunarathne <ga...@wso2.com>
> >> >> wrote:
> >> >> > Yeah Chris.It is the command set for the fedora as mention in their
> >> >> > read-me
> >> >> > file.
> >> >> >
> >> >> > For Ubuntu we can use the following command sets.
> >> >> >
> >> >> > # required dependencies
> >> >> > sudo apt-get install gcc cmake uuid-dev
> >> >> >
> >> >> > # dependencies needed for ssl support
> >> >> > sudo apt-get install libssl-dev
> >> >> >
> >> >> > # dependencies needed for bindings
> >> >> > sudo apt-get install swig python-dev ruby-dev php5-dev libperl-dev
> >> >> >
> >> >> > sudo apt-get install oracle-java8-installer
> >> >> >
> >> >> > sudo apt-get install python-epydoc
> >> >> >
> >> >> > Thanks,
> >> >> > Gayan
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > On Thu, Aug 28, 2014 at 12:53 PM, chris snow <ch...@gmail.com>
> >> >> > wrote:
> >> >> >>
> >> >> >> On Wed, Aug 27, 2014 at 6:26 AM, Gayan Gunarathne <
> gayang@wso2.com>
> >> >> >> wrote:
> >> >> >> > Hi Akila,
> >> >> >> >
> >> >> >> > When we tried with the Apache Qpid Proton-C library we did the
> >> >> >> > following
> >> >> >> > prerequisites.
> >> >> >> >
> >> >> >> >     # required dependencies
> >> >> >> >     yum install gcc cmake libuuid-devel
> >> >> >> >
> >> >> >> >     # dependencies needed for ssl support
> >> >> >> >     yum install openssl-devel
> >> >> >> >
> >> >> >> >     # dependencies needed for bindings
> >> >> >> >     yum install swig python-devel ruby-devel php-devel
> perl-devel
> >> >> >> >
> >> >> >> >     yum install java-1.8.0-openjdk-devel
> >> >> >> >
> >> >> >> >     yum install epydoc
> >> >> >> >
> >> >> >> >
> >> >> >> > After that only we were able to build in the Ubuntu and run the
> >> >> >> > python
> >> >> >> > client with proton support.I guess for every platform we need to
> >> >> >> > do
> >> >> >> > the
> >> >> >> > same
> >> >> >> > and have to maintain different settings for different
> >> >> >> > platform.WDYT?
> >> >> >> >
> >> >> >> Did you mean to say Ubuntu here? The commands above aren't for
> >> >> >> Ubuntu.
> >> >> >> >
> >> >> >> > When it comes to the large number of instance, we need to do
> load
> >> >> >> > testing
> >> >> >> > with the STOMP protocol.Thanks for pointing out this.
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > Thanks,
> >> >> >> >
> >> >> >> > Gayan
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > On Wed, Aug 27, 2014 at 10:33 AM, Akila Ravihansa Perera
> >> >> >> > <ra...@wso2.com> wrote:
> >> >> >> >>
> >> >> >> >> Hi Gayan,
> >> >> >> >>
> >> >> >> >> What are the concerns/blockers for using Apache Qpid Proton-C
> >> >> >> >> library
> >> >> >> >> [1] with Python binding?
> >> >> >> >>
> >> >> >> >> As I understood, this is cross-platform compatible
> >> >> >> >> (Linux/Windows)
> >> >> >> >> and
> >> >> >> >> you do not need Java. However, there is a pure Java
> >> >> >> >> implementation
> >> >> >> >> but
> >> >> >> >> we can use C/Python binding. We will have to investigate this
> >> >> >> >> further
> >> >> >> >> though.
> >> >> >> >>
> >> >> >> >> Have we made an analysis of using STOMP vs AMQP as the
> >> >> >> >> communication
> >> >> >> >> protocol with MB for cartridge agent? We might have to consider
> >> >> >> >> this
> >> >> >> >> because with the upcoming Docker support there can be about
> 1000+
> >> >> >> >> instances communicating with the MB.
> >> >> >> >>
> >> >> >> >> [1] https://github.com/apache/qpid-proton
> >> >> >> >>
> >> >> >> >> On Tue, Aug 26, 2014 at 4:28 PM, Gayan Gunarathne
> >> >> >> >> <ga...@wso2.com>
> >> >> >> >> wrote:
> >> >> >> >> > Hi Chris,
> >> >> >> >> >
> >> >> >> >> > Thanks for adding the JIRA for ActiveMQ. Yeah It will be a
> >> >> >> >> > worth
> >> >> >> >> > addition.
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > Thanks,
> >> >> >> >> > Gayan
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > On Tue, Aug 26, 2014 at 4:14 PM, chris snow
> >> >> >> >> > <ch...@gmail.com>
> >> >> >> >> > wrote:
> >> >> >> >> >>
> >> >> >> >> >> I guess the agent will need to be configurable to support
> >> >> >> >> >> STOMP
> >> >> >> >> >> for
> >> >> >> >> >> ActiveMQ installations or AMQP for WSO2MB installations.
> >> >> >> >> >>
> >> >> >> >> >> Also, I raised this JIRA:
> >> >> >> >> >> https://issues.apache.org/jira/browse/AMQ-5332 - it won't
> >> >> >> >> >> happen
> >> >> >> >> >> in
> >> >> >> >> >> our timescales, but I thought it was worth adding as it
> seems
> >> >> >> >> >> a
> >> >> >> >> >> lot
> >> >> >> >> >> of
> >> >> >> >> >> people hit issues with ActiveMQ only supporting AMQP 1.0.
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> On Tue, Aug 26, 2014 at 8:22 AM, Gayan Gunarathne
> >> >> >> >> >> <ga...@wso2.com>
> >> >> >> >> >> wrote:
> >> >> >> >> >> > Yeah Chris.
> >> >> >> >> >> >
> >> >> >> >> >> > Exactly the problem we have.Currently lot of python amqp
> >> >> >> >> >> > agents
> >> >> >> >> >> > for
> >> >> >> >> >> > RabbitMQ
> >> >> >> >> >> > which supports AMQP 0-9.[1].
> >> >> >> >> >> >
> >> >> >> >> >> > [1] https://www.rabbitmq.com/specification.html
> >> >> >> >> >> >
> >> >> >> >> >> > Thanks,
> >> >> >> >> >> > Gayan
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> > On Tue, Aug 26, 2014 at 12:25 PM, chris snow
> >> >> >> >> >> > <ch...@gmail.com>
> >> >> >> >> >> > wrote:
> >> >> >> >> >> >>
> >> >> >> >> >> >> Thanks Gayan!
> >> >> >> >> >> >>
> >> >> >> >> >> >> What errors were you hitting?  The few clients I tried
> give
> >> >> >> >> >> >> me
> >> >> >> >> >> >> the
> >> >> >> >> >> >> error
> >> >> >> >> >> >> [1].
> >> >> >> >> >> >>
> >> >> >> >> >> >> It seems some of f the python amqp libraries don't
> support
> >> >> >> >> >> >> version
> >> >> >> >> >> >> 1.0
> >> >> >> >> >> >> of
> >> >> >> >> >> >> AMQP?
> >> >> >> >> >> >>
> >> >> >> >> >> >> ---
> >> >> >> >> >> >> [1]
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html
> >> >> >> >> >> >>
> >> >> >> >> >> >> On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne
> >> >> >> >> >> >> <ga...@wso2.com>
> >> >> >> >> >> >> wrote:
> >> >> >> >> >> >> > Hi Chirs,
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > Please find the python client library samples which we
> >> >> >> >> >> >> > are
> >> >> >> >> >> >> > tested.
> >> >> >> >> >> >> >
> https://github.com/gayangunarathne/amqp_python_libraries
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > Thanks,
> >> >> >> >> >> >> > Gayan
> >> >> >> >> >> >> >
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne
> >> >> >> >> >> >> > <ga...@wso2.com>
> >> >> >> >> >> >> > wrote:
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> Hi Chris,
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> Yeah. We looked that qpid messaging as well.For that
> we
> >> >> >> >> >> >> >> need
> >> >> >> >> >> >> >> that
> >> >> >> >> >> >> >> qpid
> >> >> >> >> >> >> >> proton library .Is n't?
> >> >> >> >> >> >> >> AFAIR it is based on CMake and It requires java
> also[1].
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> Also we will share with you the samples we try with
> the
> >> >> >> >> >> >> >> amqp
> >> >> >> >> >> >> >> clients.
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> [1]
> http://svn.apache.org/repos/asf/qpid/proton/trunk/README
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> Thanks,
> >> >> >> >> >> >> >> Gayan
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> On Mon, Aug 25, 2014 at 7:33 PM, chris snow
> >> >> >> >> >> >> >> <ch...@gmail.com>
> >> >> >> >> >> >> >> wrote:
> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >>> hi Gayan,
> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >>> What are the issues that you received from the
> various
> >> >> >> >> >> >> >>> AMQP
> >> >> >> >> >> >> >>> libraries?
> >> >> >> >> >> >> >>> Do you have a code repo that I can take a look at to
> >> >> >> >> >> >> >>> try
> >> >> >> >> >> >> >>> and
> >> >> >> >> >> >> >>> replicate
> >> >> >> >> >> >> >>> the errors?
> >> >> >> >> >> >> >>> Did you investigate qpid [1]?
> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >>> Many thanks
> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >>> Chris
> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >>> ---
> >> >> >> >> >> >> >>> [1]
> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >>>
> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
> >> >> >> >> >> >> >>>
> >> >> >> >> >> >> >>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne
> >> >> >> >> >> >> >>> <ga...@wso2.com>
> >> >> >> >> >> >> >>> wrote:
> >> >> >> >> >> >> >>> > Hi Chris,
> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >>> > We try to replace our java cartridge agent with the
> >> >> >> >> >> >> >>> > python
> >> >> >> >> >> >> >>> > as
> >> >> >> >> >> >> >>> > after
> >> >> >> >> >> >> >>> > that we
> >> >> >> >> >> >> >>> > can remove the java dependency from the cartridge
> >> >> >> >> >> >> >>> > itself.I
> >> >> >> >> >> >> >>> > guess
> >> >> >> >> >> >> >>> > this
> >> >> >> >> >> >> >>> > is
> >> >> >> >> >> >> >>> > also vital for the Docker support too.
> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >>> > In Apache ActiveMQ site also AMQP support is based
> on
> >> >> >> >> >> >> >>> > the
> >> >> >> >> >> >> >>> > JMS/AMQP[1].
> >> >> >> >> >> >> >>> > I
> >> >> >> >> >> >> >>> > guess message broker implementation will be
> different
> >> >> >> >> >> >> >>> > from
> >> >> >> >> >> >> >>> > one
> >> >> >> >> >> >> >>> > MQ
> >> >> >> >> >> >> >>> > to
> >> >> >> >> >> >> >>> > other
> >> >> >> >> >> >> >>> > as some python client which able to connect with
> >> >> >> >> >> >> >>> > RabbitMQ
> >> >> >> >> >> >> >>> > successfully
> >> >> >> >> >> >> >>> > ,still fails with the ActiveMQ.
> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >>> > [1] http://activemq.apache.org/amqp.html
> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >>> > Thanks,
> >> >> >> >> >> >> >>> > Gayan
> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow
> >> >> >> >> >> >> >>> > <ch...@gmail.com>
> >> >> >> >> >> >> >>> > wrote:
> >> >> >> >> >> >> >>> >>
> >> >> >> >> >> >> >>> >> Is the issue because we currently have a mix of
> >> >> >> >> >> >> >>> >> JMS/AMQP/Jndi?
> >> >> >> >> >> >> >>> >> If
> >> >> >> >> >> >> >>> >> we
> >> >> >> >> >> >> >>> >> had a
> >> >> >> >> >> >> >>> >> pure AMQP approach would these problems go away?
> >> >> >> >> >> >> >>> >> AFAIK,
> >> >> >> >> >> >> >>> >> one
> >> >> >> >> >> >> >>> >> of
> >> >> >> >> >> >> >>> >> the
> >> >> >> >> >> >> >>> >> drivers
> >> >> >> >> >> >> >>> >> for AMQP was interoperability with all languages,
> >> >> >> >> >> >> >>> >> rather
> >> >> >> >> >> >> >>> >> than
> >> >> >> >> >> >> >>> >> jms
> >> >> >> >> >> >> >>> >> which is
> >> >> >> >> >> >> >>> >> focused on Java.
> >> >> >> >> >> >> >>> >>
> >> >> >> >> >> >> >>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne"
> >> >> >> >> >> >> >>> >> <ga...@wso2.com>
> >> >> >> >> >> >> >>> >> wrote:
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>> Hi All,
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>> With related to the python cartridge agent ,
> Dinesh
> >> >> >> >> >> >> >>> >>> and
> >> >> >> >> >> >> >>> >>> myself
> >> >> >> >> >> >> >>> >>> do
> >> >> >> >> >> >> >>> >>> some
> >> >> >> >> >> >> >>> >>> research related to the Apache ActiveMQ
> >> >> >> >> >> >> >>> >>> connectivity
> >> >> >> >> >> >> >>> >>> using
> >> >> >> >> >> >> >>> >>> the
> >> >> >> >> >> >> >>> >>> python
> >> >> >> >> >> >> >>> >>> client.
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>> Following our findings on this.
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>> AMQP
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>> AFAWU we need to have  pyactivemq , which is a
> >> >> >> >> >> >> >>> >>> Python
> >> >> >> >> >> >> >>> >>> wrapper
> >> >> >> >> >> >> >>> >>> for
> >> >> >> >> >> >> >>> >>> the
> >> >> >> >> >> >> >>> >>> ActiveMQ C++ Library,[1] But we won't be able to
> >> >> >> >> >> >> >>> >>> use
> >> >> >> >> >> >> >>> >>> this
> >> >> >> >> >> >> >>> >>> module
> >> >> >> >> >> >> >>> >>> as
> >> >> >> >> >> >> >>> >>> it is
> >> >> >> >> >> >> >>> >>> platform dependent.
> >> >> >> >> >> >> >>> >>> Also we checked the following client libraries as
> >> >> >> >> >> >> >>> >>> well(those
> >> >> >> >> >> >> >>> >>> are
> >> >> >> >> >> >> >>> >>> recommended with the RabbitMQ)
> >> >> >> >> >> >> >>> >>> [3] py-amqplib
> >> >> >> >> >> >> >>> >>> [4] txAMQP
> >> >> >> >> >> >> >>> >>> [5] pika
> >> >> >> >> >> >> >>> >>> [6] Carrot (has copy right licence)
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>> But we were unable to connect Apache ActiveMQ
> with
> >> >> >> >> >> >> >>> >>> those
> >> >> >> >> >> >> >>> >>> as
> >> >> >> >> >> >> >>> >>> well.(Even
> >> >> >> >> >> >> >>> >>> through we can connect those with the RabbitMQ)
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>> STOMP[2]
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>> With the STOMP protocol , We were able to connect
> >> >> >> >> >> >> >>> >>> Apache
> >> >> >> >> >> >> >>> >>> ActiveMQ
> >> >> >> >> >> >> >>> >>> by
> >> >> >> >> >> >> >>> >>> using the stomp module.[7]
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>> As a summary,
> >> >> >> >> >> >> >>> >>> It seems like we need to use STOMP to connect
> >> >> >> >> >> >> >>> >>> ActiveMQ.
> >> >> >> >> >> >> >>> >>> But
> >> >> >> >> >> >> >>> >>> still,
> >> >> >> >> >> >> >>> >>> WSO2
> >> >> >> >> >> >> >>> >>> message broker is not supporting STOMP protocol.
> >> >> >> >> >> >> >>> >>> IMO Shall we used the hybrid model for connect to
> >> >> >> >> >> >> >>> >>> the
> >> >> >> >> >> >> >>> >>> message
> >> >> >> >> >> >> >>> >>> queues.
> >> >> >> >> >> >> >>> >>> Such that , we can use STOMP to connect the
> >> >> >> >> >> >> >>> >>> ActiveMQ
> >> >> >> >> >> >> >>> >>> and
> >> >> >> >> >> >> >>> >>> AMQP
> >> >> >> >> >> >> >>> >>> to
> >> >> >> >> >> >> >>> >>> connect
> >> >> >> >> >> >> >>> >>> WSO2 MB. WDYT?
> >> >> >> >> >> >> >>> >>> With txAMQP[4] we were able to connect WSO2 MB
> >> >> >> >> >> >> >>> >>> using
> >> >> >> >> >> >> >>> >>> the
> >> >> >> >> >> >> >>> >>> qpid
> >> >> >> >> >> >> >>> >>> amqp
> >> >> >> >> >> >> >>> >>> specifications.
> >> >> >> >> >> >> >>> >>> Please share your suggestions and thoughts on
> this.
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>> [1] http://activemq.apache.org/python.html
> >> >> >> >> >> >> >>> >>> [2] http://activemq.apache.org/stomp.html
> >> >> >> >> >> >> >>> >>> [3] http://barryp.org/software/py-amqplib/
> >> >> >> >> >> >> >>> >>> [4] https://launchpad.net/txamqp
> >> >> >> >> >> >> >>> >>> [5] https://github.com/pika/pika
> >> >> >> >> >> >> >>> >>> [6] https://pypi.python.org/pypi/carrot/
> >> >> >> >> >> >> >>> >>> [7] https://github.com/jasonrbriggs/stomp.py
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>> @Dinesh , Please add If I missed anything here.
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>> Thanks,
> >> >> >> >> >> >> >>> >>> Gayan
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>> --
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >>> Gayan Gunarathne
> >> >> >> >> >> >> >>> >>> Technical Lead
> >> >> >> >> >> >> >>> >>> WSO2 Inc. (http://wso2.com)
> >> >> >> >> >> >> >>> >>> email  : gayang@wso2.com  | mobile : +94
> 766819985
> >> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >>> > --
> >> >> >> >> >> >> >>> > Best Regards,
> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >>> > Gayan Gunarathne
> >> >> >> >> >> >> >>> > Technical Lead
> >> >> >> >> >> >> >>> > WSO2 Inc. (http://wso2.com)
> >> >> >> >> >> >> >>> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >> >> >>> >
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> --
> >> >> >> >> >> >> >> Best Regards,
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >> Gayan Gunarathne
> >> >> >> >> >> >> >> Technical Lead
> >> >> >> >> >> >> >> WSO2 Inc. (http://wso2.com)
> >> >> >> >> >> >> >> email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >> >> >>
> >> >> >> >> >> >> >
> >> >> >> >> >> >> >
> >> >> >> >> >> >> >
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > --
> >> >> >> >> >> >> > Best Regards,
> >> >> >> >> >> >> >
> >> >> >> >> >> >> > Gayan Gunarathne
> >> >> >> >> >> >> > Technical Lead
> >> >> >> >> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> >> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> > --
> >> >> >> >> >> > Best Regards,
> >> >> >> >> >> >
> >> >> >> >> >> > Gayan Gunarathne
> >> >> >> >> >> > Technical Lead
> >> >> >> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > --
> >> >> >> >> > Best Regards,
> >> >> >> >> >
> >> >> >> >> > Gayan Gunarathne
> >> >> >> >> > Technical Lead
> >> >> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> Akila Ravihansa Perera
> >> >> >> >> WSO2 Inc
> >> >> >> >>
> >> >> >> >> Blog: http://ravihansa3000.blogspot.com
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > --
> >> >> >> > Best Regards,
> >> >> >> >
> >> >> >> > Gayan Gunarathne
> >> >> >> > Technical Lead
> >> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Best Regards,
> >> >> >
> >> >> > Gayan Gunarathne
> >> >> > Technical Lead
> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Best Regards,
> >> >
> >> > Gayan Gunarathne
> >> > Technical Lead
> >> > WSO2 Inc. (http://wso2.com)
> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >
> >
> >
> >
> >
> > --
> > Best Regards,
> >
> > Gayan Gunarathne
> > Technical Lead
> > WSO2 Inc. (http://wso2.com)
> > email  : gayang@wso2.com  | mobile : +94 766819985
> >
>



-- 
Best Regards,

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gayang@wso2.com  | mobile : +94 766819985

Re: Stratos Python Cartridge Agent

Posted by chris snow <ch...@gmail.com>.
Hi Gayan, yes, that link was for the broker, but I was hoping the same
question had been asked for proton.

I ended up sending an email to the proton list.  It seems there are
binary packages [1] - did you find these?

---
[1] http://qpid.2158936.n2.nabble.com/make-dist-for-proton-c-td7612705.html

On Thu, Aug 28, 2014 at 1:05 PM, Gayan Gunarathne <ga...@wso2.com> wrote:
> AFAIU we don't have make dist option here.I guess, they included the install
> option only.Even if we have make dist option I guess still we need to make a
> separate build for the each platform.Is n't?
>
> Also that link[1],even it is about the qpid message broker, I think they are
> talking about the same platform. WDYT?
>
> Thanks,
> Gayan
>
>
>
> On Thu, Aug 28, 2014 at 4:52 PM, chris snow <ch...@gmail.com> wrote:
>>
>> Hi Gayan, is there a 'make dist' option [1]?
>>
>> ---
>> [1]
>> http://qpid.2158936.n2.nabble.com/How-to-deploy-the-broker-on-another-machine-td3400607.html#a3400632
>>
>>
>> On Thu, Aug 28, 2014 at 11:20 AM, Gayan Gunarathne <ga...@wso2.com>
>> wrote:
>> > Hi Chris,
>> >
>> > AFAIR that build will added the attached file list (please find the
>> > attached
>> > document) to the Ubuntu and it uses those files.IMO with fedora build
>> > that
>> > files will be different and it will be platform dependent. WDYT?
>> >
>> > Thanks,
>> > Gayan
>> >
>> >
>> > On Thu, Aug 28, 2014 at 2:47 PM, chris snow <ch...@gmail.com> wrote:
>> >>
>> >> Ah, ok.  So the problem is just that we need to setup a development
>> >> environment to compile the qpid application?  After qpid has been
>> >> compiled to a binary, the development environment is no longer
>> >> required?  Can we use fedora to build a qpid binary for ubuntu?
>> >>
>> >>
>> >> On Thu, Aug 28, 2014 at 9:47 AM, Gayan Gunarathne <ga...@wso2.com>
>> >> wrote:
>> >> > Yeah Chris.It is the command set for the fedora as mention in their
>> >> > read-me
>> >> > file.
>> >> >
>> >> > For Ubuntu we can use the following command sets.
>> >> >
>> >> > # required dependencies
>> >> > sudo apt-get install gcc cmake uuid-dev
>> >> >
>> >> > # dependencies needed for ssl support
>> >> > sudo apt-get install libssl-dev
>> >> >
>> >> > # dependencies needed for bindings
>> >> > sudo apt-get install swig python-dev ruby-dev php5-dev libperl-dev
>> >> >
>> >> > sudo apt-get install oracle-java8-installer
>> >> >
>> >> > sudo apt-get install python-epydoc
>> >> >
>> >> > Thanks,
>> >> > Gayan
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > On Thu, Aug 28, 2014 at 12:53 PM, chris snow <ch...@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> On Wed, Aug 27, 2014 at 6:26 AM, Gayan Gunarathne <ga...@wso2.com>
>> >> >> wrote:
>> >> >> > Hi Akila,
>> >> >> >
>> >> >> > When we tried with the Apache Qpid Proton-C library we did the
>> >> >> > following
>> >> >> > prerequisites.
>> >> >> >
>> >> >> >     # required dependencies
>> >> >> >     yum install gcc cmake libuuid-devel
>> >> >> >
>> >> >> >     # dependencies needed for ssl support
>> >> >> >     yum install openssl-devel
>> >> >> >
>> >> >> >     # dependencies needed for bindings
>> >> >> >     yum install swig python-devel ruby-devel php-devel perl-devel
>> >> >> >
>> >> >> >     yum install java-1.8.0-openjdk-devel
>> >> >> >
>> >> >> >     yum install epydoc
>> >> >> >
>> >> >> >
>> >> >> > After that only we were able to build in the Ubuntu and run the
>> >> >> > python
>> >> >> > client with proton support.I guess for every platform we need to
>> >> >> > do
>> >> >> > the
>> >> >> > same
>> >> >> > and have to maintain different settings for different
>> >> >> > platform.WDYT?
>> >> >> >
>> >> >> Did you mean to say Ubuntu here? The commands above aren't for
>> >> >> Ubuntu.
>> >> >> >
>> >> >> > When it comes to the large number of instance, we need to do load
>> >> >> > testing
>> >> >> > with the STOMP protocol.Thanks for pointing out this.
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > Thanks,
>> >> >> >
>> >> >> > Gayan
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On Wed, Aug 27, 2014 at 10:33 AM, Akila Ravihansa Perera
>> >> >> > <ra...@wso2.com> wrote:
>> >> >> >>
>> >> >> >> Hi Gayan,
>> >> >> >>
>> >> >> >> What are the concerns/blockers for using Apache Qpid Proton-C
>> >> >> >> library
>> >> >> >> [1] with Python binding?
>> >> >> >>
>> >> >> >> As I understood, this is cross-platform compatible
>> >> >> >> (Linux/Windows)
>> >> >> >> and
>> >> >> >> you do not need Java. However, there is a pure Java
>> >> >> >> implementation
>> >> >> >> but
>> >> >> >> we can use C/Python binding. We will have to investigate this
>> >> >> >> further
>> >> >> >> though.
>> >> >> >>
>> >> >> >> Have we made an analysis of using STOMP vs AMQP as the
>> >> >> >> communication
>> >> >> >> protocol with MB for cartridge agent? We might have to consider
>> >> >> >> this
>> >> >> >> because with the upcoming Docker support there can be about 1000+
>> >> >> >> instances communicating with the MB.
>> >> >> >>
>> >> >> >> [1] https://github.com/apache/qpid-proton
>> >> >> >>
>> >> >> >> On Tue, Aug 26, 2014 at 4:28 PM, Gayan Gunarathne
>> >> >> >> <ga...@wso2.com>
>> >> >> >> wrote:
>> >> >> >> > Hi Chris,
>> >> >> >> >
>> >> >> >> > Thanks for adding the JIRA for ActiveMQ. Yeah It will be a
>> >> >> >> > worth
>> >> >> >> > addition.
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > Thanks,
>> >> >> >> > Gayan
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > On Tue, Aug 26, 2014 at 4:14 PM, chris snow
>> >> >> >> > <ch...@gmail.com>
>> >> >> >> > wrote:
>> >> >> >> >>
>> >> >> >> >> I guess the agent will need to be configurable to support
>> >> >> >> >> STOMP
>> >> >> >> >> for
>> >> >> >> >> ActiveMQ installations or AMQP for WSO2MB installations.
>> >> >> >> >>
>> >> >> >> >> Also, I raised this JIRA:
>> >> >> >> >> https://issues.apache.org/jira/browse/AMQ-5332 - it won't
>> >> >> >> >> happen
>> >> >> >> >> in
>> >> >> >> >> our timescales, but I thought it was worth adding as it seems
>> >> >> >> >> a
>> >> >> >> >> lot
>> >> >> >> >> of
>> >> >> >> >> people hit issues with ActiveMQ only supporting AMQP 1.0.
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> On Tue, Aug 26, 2014 at 8:22 AM, Gayan Gunarathne
>> >> >> >> >> <ga...@wso2.com>
>> >> >> >> >> wrote:
>> >> >> >> >> > Yeah Chris.
>> >> >> >> >> >
>> >> >> >> >> > Exactly the problem we have.Currently lot of python amqp
>> >> >> >> >> > agents
>> >> >> >> >> > for
>> >> >> >> >> > RabbitMQ
>> >> >> >> >> > which supports AMQP 0-9.[1].
>> >> >> >> >> >
>> >> >> >> >> > [1] https://www.rabbitmq.com/specification.html
>> >> >> >> >> >
>> >> >> >> >> > Thanks,
>> >> >> >> >> > Gayan
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > On Tue, Aug 26, 2014 at 12:25 PM, chris snow
>> >> >> >> >> > <ch...@gmail.com>
>> >> >> >> >> > wrote:
>> >> >> >> >> >>
>> >> >> >> >> >> Thanks Gayan!
>> >> >> >> >> >>
>> >> >> >> >> >> What errors were you hitting?  The few clients I tried give
>> >> >> >> >> >> me
>> >> >> >> >> >> the
>> >> >> >> >> >> error
>> >> >> >> >> >> [1].
>> >> >> >> >> >>
>> >> >> >> >> >> It seems some of f the python amqp libraries don't support
>> >> >> >> >> >> version
>> >> >> >> >> >> 1.0
>> >> >> >> >> >> of
>> >> >> >> >> >> AMQP?
>> >> >> >> >> >>
>> >> >> >> >> >> ---
>> >> >> >> >> >> [1]
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >> http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html
>> >> >> >> >> >>
>> >> >> >> >> >> On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne
>> >> >> >> >> >> <ga...@wso2.com>
>> >> >> >> >> >> wrote:
>> >> >> >> >> >> > Hi Chirs,
>> >> >> >> >> >> >
>> >> >> >> >> >> > Please find the python client library samples which we
>> >> >> >> >> >> > are
>> >> >> >> >> >> > tested.
>> >> >> >> >> >> > https://github.com/gayangunarathne/amqp_python_libraries
>> >> >> >> >> >> >
>> >> >> >> >> >> > Thanks,
>> >> >> >> >> >> > Gayan
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> > On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne
>> >> >> >> >> >> > <ga...@wso2.com>
>> >> >> >> >> >> > wrote:
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> Hi Chris,
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> Yeah. We looked that qpid messaging as well.For that we
>> >> >> >> >> >> >> need
>> >> >> >> >> >> >> that
>> >> >> >> >> >> >> qpid
>> >> >> >> >> >> >> proton library .Is n't?
>> >> >> >> >> >> >> AFAIR it is based on CMake and It requires java also[1].
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> Also we will share with you the samples we try with the
>> >> >> >> >> >> >> amqp
>> >> >> >> >> >> >> clients.
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> [1]http://svn.apache.org/repos/asf/qpid/proton/trunk/README
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> Thanks,
>> >> >> >> >> >> >> Gayan
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> On Mon, Aug 25, 2014 at 7:33 PM, chris snow
>> >> >> >> >> >> >> <ch...@gmail.com>
>> >> >> >> >> >> >> wrote:
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>> hi Gayan,
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>> What are the issues that you received from the various
>> >> >> >> >> >> >>> AMQP
>> >> >> >> >> >> >>> libraries?
>> >> >> >> >> >> >>> Do you have a code repo that I can take a look at to
>> >> >> >> >> >> >>> try
>> >> >> >> >> >> >>> and
>> >> >> >> >> >> >>> replicate
>> >> >> >> >> >> >>> the errors?
>> >> >> >> >> >> >>> Did you investigate qpid [1]?
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>> Many thanks
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>> Chris
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>> ---
>> >> >> >> >> >> >>> [1]
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
>> >> >> >> >> >> >>>
>> >> >> >> >> >> >>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne
>> >> >> >> >> >> >>> <ga...@wso2.com>
>> >> >> >> >> >> >>> wrote:
>> >> >> >> >> >> >>> > Hi Chris,
>> >> >> >> >> >> >>> >
>> >> >> >> >> >> >>> > We try to replace our java cartridge agent with the
>> >> >> >> >> >> >>> > python
>> >> >> >> >> >> >>> > as
>> >> >> >> >> >> >>> > after
>> >> >> >> >> >> >>> > that we
>> >> >> >> >> >> >>> > can remove the java dependency from the cartridge
>> >> >> >> >> >> >>> > itself.I
>> >> >> >> >> >> >>> > guess
>> >> >> >> >> >> >>> > this
>> >> >> >> >> >> >>> > is
>> >> >> >> >> >> >>> > also vital for the Docker support too.
>> >> >> >> >> >> >>> >
>> >> >> >> >> >> >>> > In Apache ActiveMQ site also AMQP support is based on
>> >> >> >> >> >> >>> > the
>> >> >> >> >> >> >>> > JMS/AMQP[1].
>> >> >> >> >> >> >>> > I
>> >> >> >> >> >> >>> > guess message broker implementation will be different
>> >> >> >> >> >> >>> > from
>> >> >> >> >> >> >>> > one
>> >> >> >> >> >> >>> > MQ
>> >> >> >> >> >> >>> > to
>> >> >> >> >> >> >>> > other
>> >> >> >> >> >> >>> > as some python client which able to connect with
>> >> >> >> >> >> >>> > RabbitMQ
>> >> >> >> >> >> >>> > successfully
>> >> >> >> >> >> >>> > ,still fails with the ActiveMQ.
>> >> >> >> >> >> >>> >
>> >> >> >> >> >> >>> > [1] http://activemq.apache.org/amqp.html
>> >> >> >> >> >> >>> >
>> >> >> >> >> >> >>> > Thanks,
>> >> >> >> >> >> >>> > Gayan
>> >> >> >> >> >> >>> >
>> >> >> >> >> >> >>> >
>> >> >> >> >> >> >>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow
>> >> >> >> >> >> >>> > <ch...@gmail.com>
>> >> >> >> >> >> >>> > wrote:
>> >> >> >> >> >> >>> >>
>> >> >> >> >> >> >>> >> Is the issue because we currently have a mix of
>> >> >> >> >> >> >>> >> JMS/AMQP/Jndi?
>> >> >> >> >> >> >>> >> If
>> >> >> >> >> >> >>> >> we
>> >> >> >> >> >> >>> >> had a
>> >> >> >> >> >> >>> >> pure AMQP approach would these problems go away?
>> >> >> >> >> >> >>> >> AFAIK,
>> >> >> >> >> >> >>> >> one
>> >> >> >> >> >> >>> >> of
>> >> >> >> >> >> >>> >> the
>> >> >> >> >> >> >>> >> drivers
>> >> >> >> >> >> >>> >> for AMQP was interoperability with all languages,
>> >> >> >> >> >> >>> >> rather
>> >> >> >> >> >> >>> >> than
>> >> >> >> >> >> >>> >> jms
>> >> >> >> >> >> >>> >> which is
>> >> >> >> >> >> >>> >> focused on Java.
>> >> >> >> >> >> >>> >>
>> >> >> >> >> >> >>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne"
>> >> >> >> >> >> >>> >> <ga...@wso2.com>
>> >> >> >> >> >> >>> >> wrote:
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>> Hi All,
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>> With related to the python cartridge agent , Dinesh
>> >> >> >> >> >> >>> >>> and
>> >> >> >> >> >> >>> >>> myself
>> >> >> >> >> >> >>> >>> do
>> >> >> >> >> >> >>> >>> some
>> >> >> >> >> >> >>> >>> research related to the Apache ActiveMQ
>> >> >> >> >> >> >>> >>> connectivity
>> >> >> >> >> >> >>> >>> using
>> >> >> >> >> >> >>> >>> the
>> >> >> >> >> >> >>> >>> python
>> >> >> >> >> >> >>> >>> client.
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>> Following our findings on this.
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>> AMQP
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>> AFAWU we need to have  pyactivemq , which is a
>> >> >> >> >> >> >>> >>> Python
>> >> >> >> >> >> >>> >>> wrapper
>> >> >> >> >> >> >>> >>> for
>> >> >> >> >> >> >>> >>> the
>> >> >> >> >> >> >>> >>> ActiveMQ C++ Library,[1] But we won't be able to
>> >> >> >> >> >> >>> >>> use
>> >> >> >> >> >> >>> >>> this
>> >> >> >> >> >> >>> >>> module
>> >> >> >> >> >> >>> >>> as
>> >> >> >> >> >> >>> >>> it is
>> >> >> >> >> >> >>> >>> platform dependent.
>> >> >> >> >> >> >>> >>> Also we checked the following client libraries as
>> >> >> >> >> >> >>> >>> well(those
>> >> >> >> >> >> >>> >>> are
>> >> >> >> >> >> >>> >>> recommended with the RabbitMQ)
>> >> >> >> >> >> >>> >>> [3] py-amqplib
>> >> >> >> >> >> >>> >>> [4] txAMQP
>> >> >> >> >> >> >>> >>> [5] pika
>> >> >> >> >> >> >>> >>> [6] Carrot (has copy right licence)
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>> But we were unable to connect Apache ActiveMQ with
>> >> >> >> >> >> >>> >>> those
>> >> >> >> >> >> >>> >>> as
>> >> >> >> >> >> >>> >>> well.(Even
>> >> >> >> >> >> >>> >>> through we can connect those with the RabbitMQ)
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>> STOMP[2]
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>> With the STOMP protocol , We were able to connect
>> >> >> >> >> >> >>> >>> Apache
>> >> >> >> >> >> >>> >>> ActiveMQ
>> >> >> >> >> >> >>> >>> by
>> >> >> >> >> >> >>> >>> using the stomp module.[7]
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>> As a summary,
>> >> >> >> >> >> >>> >>> It seems like we need to use STOMP to connect
>> >> >> >> >> >> >>> >>> ActiveMQ.
>> >> >> >> >> >> >>> >>> But
>> >> >> >> >> >> >>> >>> still,
>> >> >> >> >> >> >>> >>> WSO2
>> >> >> >> >> >> >>> >>> message broker is not supporting STOMP protocol.
>> >> >> >> >> >> >>> >>> IMO Shall we used the hybrid model for connect to
>> >> >> >> >> >> >>> >>> the
>> >> >> >> >> >> >>> >>> message
>> >> >> >> >> >> >>> >>> queues.
>> >> >> >> >> >> >>> >>> Such that , we can use STOMP to connect the
>> >> >> >> >> >> >>> >>> ActiveMQ
>> >> >> >> >> >> >>> >>> and
>> >> >> >> >> >> >>> >>> AMQP
>> >> >> >> >> >> >>> >>> to
>> >> >> >> >> >> >>> >>> connect
>> >> >> >> >> >> >>> >>> WSO2 MB. WDYT?
>> >> >> >> >> >> >>> >>> With txAMQP[4] we were able to connect WSO2 MB
>> >> >> >> >> >> >>> >>> using
>> >> >> >> >> >> >>> >>> the
>> >> >> >> >> >> >>> >>> qpid
>> >> >> >> >> >> >>> >>> amqp
>> >> >> >> >> >> >>> >>> specifications.
>> >> >> >> >> >> >>> >>> Please share your suggestions and thoughts on this.
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>> [1] http://activemq.apache.org/python.html
>> >> >> >> >> >> >>> >>> [2] http://activemq.apache.org/stomp.html
>> >> >> >> >> >> >>> >>> [3] http://barryp.org/software/py-amqplib/
>> >> >> >> >> >> >>> >>> [4] https://launchpad.net/txamqp
>> >> >> >> >> >> >>> >>> [5] https://github.com/pika/pika
>> >> >> >> >> >> >>> >>> [6] https://pypi.python.org/pypi/carrot/
>> >> >> >> >> >> >>> >>> [7] https://github.com/jasonrbriggs/stomp.py
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>> @Dinesh , Please add If I missed anything here.
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>> Thanks,
>> >> >> >> >> >> >>> >>> Gayan
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>> --
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >>> Gayan Gunarathne
>> >> >> >> >> >> >>> >>> Technical Lead
>> >> >> >> >> >> >>> >>> WSO2 Inc. (http://wso2.com)
>> >> >> >> >> >> >>> >>> email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >> >> >>> >>>
>> >> >> >> >> >> >>> >
>> >> >> >> >> >> >>> >
>> >> >> >> >> >> >>> >
>> >> >> >> >> >> >>> >
>> >> >> >> >> >> >>> > --
>> >> >> >> >> >> >>> > Best Regards,
>> >> >> >> >> >> >>> >
>> >> >> >> >> >> >>> > Gayan Gunarathne
>> >> >> >> >> >> >>> > Technical Lead
>> >> >> >> >> >> >>> > WSO2 Inc. (http://wso2.com)
>> >> >> >> >> >> >>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >> >> >>> >
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> --
>> >> >> >> >> >> >> Best Regards,
>> >> >> >> >> >> >>
>> >> >> >> >> >> >> Gayan Gunarathne
>> >> >> >> >> >> >> Technical Lead
>> >> >> >> >> >> >> WSO2 Inc. (http://wso2.com)
>> >> >> >> >> >> >> email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >> >> >>
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> >
>> >> >> >> >> >> > --
>> >> >> >> >> >> > Best Regards,
>> >> >> >> >> >> >
>> >> >> >> >> >> > Gayan Gunarathne
>> >> >> >> >> >> > Technical Lead
>> >> >> >> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > --
>> >> >> >> >> > Best Regards,
>> >> >> >> >> >
>> >> >> >> >> > Gayan Gunarathne
>> >> >> >> >> > Technical Lead
>> >> >> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > --
>> >> >> >> > Best Regards,
>> >> >> >> >
>> >> >> >> > Gayan Gunarathne
>> >> >> >> > Technical Lead
>> >> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> Akila Ravihansa Perera
>> >> >> >> WSO2 Inc
>> >> >> >>
>> >> >> >> Blog: http://ravihansa3000.blogspot.com
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > Best Regards,
>> >> >> >
>> >> >> > Gayan Gunarathne
>> >> >> > Technical Lead
>> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Best Regards,
>> >> >
>> >> > Gayan Gunarathne
>> >> > Technical Lead
>> >> > WSO2 Inc. (http://wso2.com)
>> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >
>> >
>> >
>> >
>> >
>> > --
>> > Best Regards,
>> >
>> > Gayan Gunarathne
>> > Technical Lead
>> > WSO2 Inc. (http://wso2.com)
>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >
>
>
>
>
> --
> Best Regards,
>
> Gayan Gunarathne
> Technical Lead
> WSO2 Inc. (http://wso2.com)
> email  : gayang@wso2.com  | mobile : +94 766819985
>

Re: Stratos Python Cartridge Agent

Posted by Gayan Gunarathne <ga...@wso2.com>.
AFAIU we don't have make dist option here.I guess, they included the
install option only.Even if we have make dist option I guess still we need
to make a separate build for the each platform.Is n't?

Also that link[1],even it is about the qpid message broker, I think they
are talking about the same platform. WDYT?

Thanks,
Gayan



On Thu, Aug 28, 2014 at 4:52 PM, chris snow <ch...@gmail.com> wrote:

> Hi Gayan, is there a 'make dist' option [1]?
>
> ---
> [1]
> http://qpid.2158936.n2.nabble.com/How-to-deploy-the-broker-on-another-machine-td3400607.html#a3400632
>
>
> On Thu, Aug 28, 2014 at 11:20 AM, Gayan Gunarathne <ga...@wso2.com>
> wrote:
> > Hi Chris,
> >
> > AFAIR that build will added the attached file list (please find the
> attached
> > document) to the Ubuntu and it uses those files.IMO with fedora build
> that
> > files will be different and it will be platform dependent. WDYT?
> >
> > Thanks,
> > Gayan
> >
> >
> > On Thu, Aug 28, 2014 at 2:47 PM, chris snow <ch...@gmail.com> wrote:
> >>
> >> Ah, ok.  So the problem is just that we need to setup a development
> >> environment to compile the qpid application?  After qpid has been
> >> compiled to a binary, the development environment is no longer
> >> required?  Can we use fedora to build a qpid binary for ubuntu?
> >>
> >>
> >> On Thu, Aug 28, 2014 at 9:47 AM, Gayan Gunarathne <ga...@wso2.com>
> wrote:
> >> > Yeah Chris.It is the command set for the fedora as mention in their
> >> > read-me
> >> > file.
> >> >
> >> > For Ubuntu we can use the following command sets.
> >> >
> >> > # required dependencies
> >> > sudo apt-get install gcc cmake uuid-dev
> >> >
> >> > # dependencies needed for ssl support
> >> > sudo apt-get install libssl-dev
> >> >
> >> > # dependencies needed for bindings
> >> > sudo apt-get install swig python-dev ruby-dev php5-dev libperl-dev
> >> >
> >> > sudo apt-get install oracle-java8-installer
> >> >
> >> > sudo apt-get install python-epydoc
> >> >
> >> > Thanks,
> >> > Gayan
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > On Thu, Aug 28, 2014 at 12:53 PM, chris snow <ch...@gmail.com>
> >> > wrote:
> >> >>
> >> >> On Wed, Aug 27, 2014 at 6:26 AM, Gayan Gunarathne <ga...@wso2.com>
> >> >> wrote:
> >> >> > Hi Akila,
> >> >> >
> >> >> > When we tried with the Apache Qpid Proton-C library we did the
> >> >> > following
> >> >> > prerequisites.
> >> >> >
> >> >> >     # required dependencies
> >> >> >     yum install gcc cmake libuuid-devel
> >> >> >
> >> >> >     # dependencies needed for ssl support
> >> >> >     yum install openssl-devel
> >> >> >
> >> >> >     # dependencies needed for bindings
> >> >> >     yum install swig python-devel ruby-devel php-devel perl-devel
> >> >> >
> >> >> >     yum install java-1.8.0-openjdk-devel
> >> >> >
> >> >> >     yum install epydoc
> >> >> >
> >> >> >
> >> >> > After that only we were able to build in the Ubuntu and run the
> >> >> > python
> >> >> > client with proton support.I guess for every platform we need to do
> >> >> > the
> >> >> > same
> >> >> > and have to maintain different settings for different
> platform.WDYT?
> >> >> >
> >> >> Did you mean to say Ubuntu here? The commands above aren't for
> Ubuntu.
> >> >> >
> >> >> > When it comes to the large number of instance, we need to do load
> >> >> > testing
> >> >> > with the STOMP protocol.Thanks for pointing out this.
> >> >> >
> >> >> >
> >> >> >
> >> >> > Thanks,
> >> >> >
> >> >> > Gayan
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > On Wed, Aug 27, 2014 at 10:33 AM, Akila Ravihansa Perera
> >> >> > <ra...@wso2.com> wrote:
> >> >> >>
> >> >> >> Hi Gayan,
> >> >> >>
> >> >> >> What are the concerns/blockers for using Apache Qpid Proton-C
> >> >> >> library
> >> >> >> [1] with Python binding?
> >> >> >>
> >> >> >> As I understood, this is cross-platform compatible (Linux/Windows)
> >> >> >> and
> >> >> >> you do not need Java. However, there is a pure Java implementation
> >> >> >> but
> >> >> >> we can use C/Python binding. We will have to investigate this
> >> >> >> further
> >> >> >> though.
> >> >> >>
> >> >> >> Have we made an analysis of using STOMP vs AMQP as the
> communication
> >> >> >> protocol with MB for cartridge agent? We might have to consider
> this
> >> >> >> because with the upcoming Docker support there can be about 1000+
> >> >> >> instances communicating with the MB.
> >> >> >>
> >> >> >> [1] https://github.com/apache/qpid-proton
> >> >> >>
> >> >> >> On Tue, Aug 26, 2014 at 4:28 PM, Gayan Gunarathne <
> gayang@wso2.com>
> >> >> >> wrote:
> >> >> >> > Hi Chris,
> >> >> >> >
> >> >> >> > Thanks for adding the JIRA for ActiveMQ. Yeah It will be a worth
> >> >> >> > addition.
> >> >> >> >
> >> >> >> >
> >> >> >> > Thanks,
> >> >> >> > Gayan
> >> >> >> >
> >> >> >> >
> >> >> >> > On Tue, Aug 26, 2014 at 4:14 PM, chris snow <
> chsnow123@gmail.com>
> >> >> >> > wrote:
> >> >> >> >>
> >> >> >> >> I guess the agent will need to be configurable to support STOMP
> >> >> >> >> for
> >> >> >> >> ActiveMQ installations or AMQP for WSO2MB installations.
> >> >> >> >>
> >> >> >> >> Also, I raised this JIRA:
> >> >> >> >> https://issues.apache.org/jira/browse/AMQ-5332 - it won't
> happen
> >> >> >> >> in
> >> >> >> >> our timescales, but I thought it was worth adding as it seems a
> >> >> >> >> lot
> >> >> >> >> of
> >> >> >> >> people hit issues with ActiveMQ only supporting AMQP 1.0.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> On Tue, Aug 26, 2014 at 8:22 AM, Gayan Gunarathne
> >> >> >> >> <ga...@wso2.com>
> >> >> >> >> wrote:
> >> >> >> >> > Yeah Chris.
> >> >> >> >> >
> >> >> >> >> > Exactly the problem we have.Currently lot of python amqp
> agents
> >> >> >> >> > for
> >> >> >> >> > RabbitMQ
> >> >> >> >> > which supports AMQP 0-9.[1].
> >> >> >> >> >
> >> >> >> >> > [1] https://www.rabbitmq.com/specification.html
> >> >> >> >> >
> >> >> >> >> > Thanks,
> >> >> >> >> > Gayan
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > On Tue, Aug 26, 2014 at 12:25 PM, chris snow
> >> >> >> >> > <ch...@gmail.com>
> >> >> >> >> > wrote:
> >> >> >> >> >>
> >> >> >> >> >> Thanks Gayan!
> >> >> >> >> >>
> >> >> >> >> >> What errors were you hitting?  The few clients I tried give
> me
> >> >> >> >> >> the
> >> >> >> >> >> error
> >> >> >> >> >> [1].
> >> >> >> >> >>
> >> >> >> >> >> It seems some of f the python amqp libraries don't support
> >> >> >> >> >> version
> >> >> >> >> >> 1.0
> >> >> >> >> >> of
> >> >> >> >> >> AMQP?
> >> >> >> >> >>
> >> >> >> >> >> ---
> >> >> >> >> >> [1]
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html
> >> >> >> >> >>
> >> >> >> >> >> On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne
> >> >> >> >> >> <ga...@wso2.com>
> >> >> >> >> >> wrote:
> >> >> >> >> >> > Hi Chirs,
> >> >> >> >> >> >
> >> >> >> >> >> > Please find the python client library samples which we are
> >> >> >> >> >> > tested.
> >> >> >> >> >> > https://github.com/gayangunarathne/amqp_python_libraries
> >> >> >> >> >> >
> >> >> >> >> >> > Thanks,
> >> >> >> >> >> > Gayan
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> > On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne
> >> >> >> >> >> > <ga...@wso2.com>
> >> >> >> >> >> > wrote:
> >> >> >> >> >> >>
> >> >> >> >> >> >> Hi Chris,
> >> >> >> >> >> >>
> >> >> >> >> >> >> Yeah. We looked that qpid messaging as well.For that we
> >> >> >> >> >> >> need
> >> >> >> >> >> >> that
> >> >> >> >> >> >> qpid
> >> >> >> >> >> >> proton library .Is n't?
> >> >> >> >> >> >> AFAIR it is based on CMake and It requires java also[1].
> >> >> >> >> >> >>
> >> >> >> >> >> >> Also we will share with you the samples we try with the
> >> >> >> >> >> >> amqp
> >> >> >> >> >> >> clients.
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >> [1]
> http://svn.apache.org/repos/asf/qpid/proton/trunk/README
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >> Thanks,
> >> >> >> >> >> >> Gayan
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >> On Mon, Aug 25, 2014 at 7:33 PM, chris snow
> >> >> >> >> >> >> <ch...@gmail.com>
> >> >> >> >> >> >> wrote:
> >> >> >> >> >> >>>
> >> >> >> >> >> >>> hi Gayan,
> >> >> >> >> >> >>>
> >> >> >> >> >> >>> What are the issues that you received from the various
> >> >> >> >> >> >>> AMQP
> >> >> >> >> >> >>> libraries?
> >> >> >> >> >> >>> Do you have a code repo that I can take a look at to try
> >> >> >> >> >> >>> and
> >> >> >> >> >> >>> replicate
> >> >> >> >> >> >>> the errors?
> >> >> >> >> >> >>> Did you investigate qpid [1]?
> >> >> >> >> >> >>>
> >> >> >> >> >> >>> Many thanks
> >> >> >> >> >> >>>
> >> >> >> >> >> >>> Chris
> >> >> >> >> >> >>>
> >> >> >> >> >> >>> ---
> >> >> >> >> >> >>> [1]
> >> >> >> >> >> >>>
> >> >> >> >> >> >>>
> >> >> >> >> >> >>>
> >> >> >> >> >> >>>
> >> >> >> >> >> >>>
> >> >> >> >> >> >>>
> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
> >> >> >> >> >> >>>
> >> >> >> >> >> >>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne
> >> >> >> >> >> >>> <ga...@wso2.com>
> >> >> >> >> >> >>> wrote:
> >> >> >> >> >> >>> > Hi Chris,
> >> >> >> >> >> >>> >
> >> >> >> >> >> >>> > We try to replace our java cartridge agent with the
> >> >> >> >> >> >>> > python
> >> >> >> >> >> >>> > as
> >> >> >> >> >> >>> > after
> >> >> >> >> >> >>> > that we
> >> >> >> >> >> >>> > can remove the java dependency from the cartridge
> >> >> >> >> >> >>> > itself.I
> >> >> >> >> >> >>> > guess
> >> >> >> >> >> >>> > this
> >> >> >> >> >> >>> > is
> >> >> >> >> >> >>> > also vital for the Docker support too.
> >> >> >> >> >> >>> >
> >> >> >> >> >> >>> > In Apache ActiveMQ site also AMQP support is based on
> >> >> >> >> >> >>> > the
> >> >> >> >> >> >>> > JMS/AMQP[1].
> >> >> >> >> >> >>> > I
> >> >> >> >> >> >>> > guess message broker implementation will be different
> >> >> >> >> >> >>> > from
> >> >> >> >> >> >>> > one
> >> >> >> >> >> >>> > MQ
> >> >> >> >> >> >>> > to
> >> >> >> >> >> >>> > other
> >> >> >> >> >> >>> > as some python client which able to connect with
> >> >> >> >> >> >>> > RabbitMQ
> >> >> >> >> >> >>> > successfully
> >> >> >> >> >> >>> > ,still fails with the ActiveMQ.
> >> >> >> >> >> >>> >
> >> >> >> >> >> >>> > [1] http://activemq.apache.org/amqp.html
> >> >> >> >> >> >>> >
> >> >> >> >> >> >>> > Thanks,
> >> >> >> >> >> >>> > Gayan
> >> >> >> >> >> >>> >
> >> >> >> >> >> >>> >
> >> >> >> >> >> >>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow
> >> >> >> >> >> >>> > <ch...@gmail.com>
> >> >> >> >> >> >>> > wrote:
> >> >> >> >> >> >>> >>
> >> >> >> >> >> >>> >> Is the issue because we currently have a mix of
> >> >> >> >> >> >>> >> JMS/AMQP/Jndi?
> >> >> >> >> >> >>> >> If
> >> >> >> >> >> >>> >> we
> >> >> >> >> >> >>> >> had a
> >> >> >> >> >> >>> >> pure AMQP approach would these problems go away?
> >> >> >> >> >> >>> >> AFAIK,
> >> >> >> >> >> >>> >> one
> >> >> >> >> >> >>> >> of
> >> >> >> >> >> >>> >> the
> >> >> >> >> >> >>> >> drivers
> >> >> >> >> >> >>> >> for AMQP was interoperability with all languages,
> >> >> >> >> >> >>> >> rather
> >> >> >> >> >> >>> >> than
> >> >> >> >> >> >>> >> jms
> >> >> >> >> >> >>> >> which is
> >> >> >> >> >> >>> >> focused on Java.
> >> >> >> >> >> >>> >>
> >> >> >> >> >> >>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne"
> >> >> >> >> >> >>> >> <ga...@wso2.com>
> >> >> >> >> >> >>> >> wrote:
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>> Hi All,
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>> With related to the python cartridge agent , Dinesh
> >> >> >> >> >> >>> >>> and
> >> >> >> >> >> >>> >>> myself
> >> >> >> >> >> >>> >>> do
> >> >> >> >> >> >>> >>> some
> >> >> >> >> >> >>> >>> research related to the Apache ActiveMQ connectivity
> >> >> >> >> >> >>> >>> using
> >> >> >> >> >> >>> >>> the
> >> >> >> >> >> >>> >>> python
> >> >> >> >> >> >>> >>> client.
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>> Following our findings on this.
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>> AMQP
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>> AFAWU we need to have  pyactivemq , which is a
> Python
> >> >> >> >> >> >>> >>> wrapper
> >> >> >> >> >> >>> >>> for
> >> >> >> >> >> >>> >>> the
> >> >> >> >> >> >>> >>> ActiveMQ C++ Library,[1] But we won't be able to use
> >> >> >> >> >> >>> >>> this
> >> >> >> >> >> >>> >>> module
> >> >> >> >> >> >>> >>> as
> >> >> >> >> >> >>> >>> it is
> >> >> >> >> >> >>> >>> platform dependent.
> >> >> >> >> >> >>> >>> Also we checked the following client libraries as
> >> >> >> >> >> >>> >>> well(those
> >> >> >> >> >> >>> >>> are
> >> >> >> >> >> >>> >>> recommended with the RabbitMQ)
> >> >> >> >> >> >>> >>> [3] py-amqplib
> >> >> >> >> >> >>> >>> [4] txAMQP
> >> >> >> >> >> >>> >>> [5] pika
> >> >> >> >> >> >>> >>> [6] Carrot (has copy right licence)
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>> But we were unable to connect Apache ActiveMQ with
> >> >> >> >> >> >>> >>> those
> >> >> >> >> >> >>> >>> as
> >> >> >> >> >> >>> >>> well.(Even
> >> >> >> >> >> >>> >>> through we can connect those with the RabbitMQ)
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>> STOMP[2]
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>> With the STOMP protocol , We were able to connect
> >> >> >> >> >> >>> >>> Apache
> >> >> >> >> >> >>> >>> ActiveMQ
> >> >> >> >> >> >>> >>> by
> >> >> >> >> >> >>> >>> using the stomp module.[7]
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>> As a summary,
> >> >> >> >> >> >>> >>> It seems like we need to use STOMP to connect
> >> >> >> >> >> >>> >>> ActiveMQ.
> >> >> >> >> >> >>> >>> But
> >> >> >> >> >> >>> >>> still,
> >> >> >> >> >> >>> >>> WSO2
> >> >> >> >> >> >>> >>> message broker is not supporting STOMP protocol.
> >> >> >> >> >> >>> >>> IMO Shall we used the hybrid model for connect to
> the
> >> >> >> >> >> >>> >>> message
> >> >> >> >> >> >>> >>> queues.
> >> >> >> >> >> >>> >>> Such that , we can use STOMP to connect the ActiveMQ
> >> >> >> >> >> >>> >>> and
> >> >> >> >> >> >>> >>> AMQP
> >> >> >> >> >> >>> >>> to
> >> >> >> >> >> >>> >>> connect
> >> >> >> >> >> >>> >>> WSO2 MB. WDYT?
> >> >> >> >> >> >>> >>> With txAMQP[4] we were able to connect WSO2 MB using
> >> >> >> >> >> >>> >>> the
> >> >> >> >> >> >>> >>> qpid
> >> >> >> >> >> >>> >>> amqp
> >> >> >> >> >> >>> >>> specifications.
> >> >> >> >> >> >>> >>> Please share your suggestions and thoughts on this.
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>> [1] http://activemq.apache.org/python.html
> >> >> >> >> >> >>> >>> [2] http://activemq.apache.org/stomp.html
> >> >> >> >> >> >>> >>> [3] http://barryp.org/software/py-amqplib/
> >> >> >> >> >> >>> >>> [4] https://launchpad.net/txamqp
> >> >> >> >> >> >>> >>> [5] https://github.com/pika/pika
> >> >> >> >> >> >>> >>> [6] https://pypi.python.org/pypi/carrot/
> >> >> >> >> >> >>> >>> [7] https://github.com/jasonrbriggs/stomp.py
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>> @Dinesh , Please add If I missed anything here.
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>> Thanks,
> >> >> >> >> >> >>> >>> Gayan
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>> --
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >>> Gayan Gunarathne
> >> >> >> >> >> >>> >>> Technical Lead
> >> >> >> >> >> >>> >>> WSO2 Inc. (http://wso2.com)
> >> >> >> >> >> >>> >>> email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >> >>> >>>
> >> >> >> >> >> >>> >
> >> >> >> >> >> >>> >
> >> >> >> >> >> >>> >
> >> >> >> >> >> >>> >
> >> >> >> >> >> >>> > --
> >> >> >> >> >> >>> > Best Regards,
> >> >> >> >> >> >>> >
> >> >> >> >> >> >>> > Gayan Gunarathne
> >> >> >> >> >> >>> > Technical Lead
> >> >> >> >> >> >>> > WSO2 Inc. (http://wso2.com)
> >> >> >> >> >> >>> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >> >>> >
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >>
> >> >> >> >> >> >> --
> >> >> >> >> >> >> Best Regards,
> >> >> >> >> >> >>
> >> >> >> >> >> >> Gayan Gunarathne
> >> >> >> >> >> >> Technical Lead
> >> >> >> >> >> >> WSO2 Inc. (http://wso2.com)
> >> >> >> >> >> >> email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >> >>
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> >
> >> >> >> >> >> > --
> >> >> >> >> >> > Best Regards,
> >> >> >> >> >> >
> >> >> >> >> >> > Gayan Gunarathne
> >> >> >> >> >> > Technical Lead
> >> >> >> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > --
> >> >> >> >> > Best Regards,
> >> >> >> >> >
> >> >> >> >> > Gayan Gunarathne
> >> >> >> >> > Technical Lead
> >> >> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > --
> >> >> >> > Best Regards,
> >> >> >> >
> >> >> >> > Gayan Gunarathne
> >> >> >> > Technical Lead
> >> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >> Akila Ravihansa Perera
> >> >> >> WSO2 Inc
> >> >> >>
> >> >> >> Blog: http://ravihansa3000.blogspot.com
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Best Regards,
> >> >> >
> >> >> > Gayan Gunarathne
> >> >> > Technical Lead
> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Best Regards,
> >> >
> >> > Gayan Gunarathne
> >> > Technical Lead
> >> > WSO2 Inc. (http://wso2.com)
> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >
> >
> >
> >
> >
> > --
> > Best Regards,
> >
> > Gayan Gunarathne
> > Technical Lead
> > WSO2 Inc. (http://wso2.com)
> > email  : gayang@wso2.com  | mobile : +94 766819985
> >
>



-- 
Best Regards,

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gayang@wso2.com  | mobile : +94 766819985

Re: Stratos Python Cartridge Agent

Posted by chris snow <ch...@gmail.com>.
Hi Gayan, is there a 'make dist' option [1]?

---
[1] http://qpid.2158936.n2.nabble.com/How-to-deploy-the-broker-on-another-machine-td3400607.html#a3400632


On Thu, Aug 28, 2014 at 11:20 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
> Hi Chris,
>
> AFAIR that build will added the attached file list (please find the attached
> document) to the Ubuntu and it uses those files.IMO with fedora build that
> files will be different and it will be platform dependent. WDYT?
>
> Thanks,
> Gayan
>
>
> On Thu, Aug 28, 2014 at 2:47 PM, chris snow <ch...@gmail.com> wrote:
>>
>> Ah, ok.  So the problem is just that we need to setup a development
>> environment to compile the qpid application?  After qpid has been
>> compiled to a binary, the development environment is no longer
>> required?  Can we use fedora to build a qpid binary for ubuntu?
>>
>>
>> On Thu, Aug 28, 2014 at 9:47 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
>> > Yeah Chris.It is the command set for the fedora as mention in their
>> > read-me
>> > file.
>> >
>> > For Ubuntu we can use the following command sets.
>> >
>> > # required dependencies
>> > sudo apt-get install gcc cmake uuid-dev
>> >
>> > # dependencies needed for ssl support
>> > sudo apt-get install libssl-dev
>> >
>> > # dependencies needed for bindings
>> > sudo apt-get install swig python-dev ruby-dev php5-dev libperl-dev
>> >
>> > sudo apt-get install oracle-java8-installer
>> >
>> > sudo apt-get install python-epydoc
>> >
>> > Thanks,
>> > Gayan
>> >
>> >
>> >
>> >
>> >
>> > On Thu, Aug 28, 2014 at 12:53 PM, chris snow <ch...@gmail.com>
>> > wrote:
>> >>
>> >> On Wed, Aug 27, 2014 at 6:26 AM, Gayan Gunarathne <ga...@wso2.com>
>> >> wrote:
>> >> > Hi Akila,
>> >> >
>> >> > When we tried with the Apache Qpid Proton-C library we did the
>> >> > following
>> >> > prerequisites.
>> >> >
>> >> >     # required dependencies
>> >> >     yum install gcc cmake libuuid-devel
>> >> >
>> >> >     # dependencies needed for ssl support
>> >> >     yum install openssl-devel
>> >> >
>> >> >     # dependencies needed for bindings
>> >> >     yum install swig python-devel ruby-devel php-devel perl-devel
>> >> >
>> >> >     yum install java-1.8.0-openjdk-devel
>> >> >
>> >> >     yum install epydoc
>> >> >
>> >> >
>> >> > After that only we were able to build in the Ubuntu and run the
>> >> > python
>> >> > client with proton support.I guess for every platform we need to do
>> >> > the
>> >> > same
>> >> > and have to maintain different settings for different platform.WDYT?
>> >> >
>> >> Did you mean to say Ubuntu here? The commands above aren't for Ubuntu.
>> >> >
>> >> > When it comes to the large number of instance, we need to do load
>> >> > testing
>> >> > with the STOMP protocol.Thanks for pointing out this.
>> >> >
>> >> >
>> >> >
>> >> > Thanks,
>> >> >
>> >> > Gayan
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > On Wed, Aug 27, 2014 at 10:33 AM, Akila Ravihansa Perera
>> >> > <ra...@wso2.com> wrote:
>> >> >>
>> >> >> Hi Gayan,
>> >> >>
>> >> >> What are the concerns/blockers for using Apache Qpid Proton-C
>> >> >> library
>> >> >> [1] with Python binding?
>> >> >>
>> >> >> As I understood, this is cross-platform compatible (Linux/Windows)
>> >> >> and
>> >> >> you do not need Java. However, there is a pure Java implementation
>> >> >> but
>> >> >> we can use C/Python binding. We will have to investigate this
>> >> >> further
>> >> >> though.
>> >> >>
>> >> >> Have we made an analysis of using STOMP vs AMQP as the communication
>> >> >> protocol with MB for cartridge agent? We might have to consider this
>> >> >> because with the upcoming Docker support there can be about 1000+
>> >> >> instances communicating with the MB.
>> >> >>
>> >> >> [1] https://github.com/apache/qpid-proton
>> >> >>
>> >> >> On Tue, Aug 26, 2014 at 4:28 PM, Gayan Gunarathne <ga...@wso2.com>
>> >> >> wrote:
>> >> >> > Hi Chris,
>> >> >> >
>> >> >> > Thanks for adding the JIRA for ActiveMQ. Yeah It will be a worth
>> >> >> > addition.
>> >> >> >
>> >> >> >
>> >> >> > Thanks,
>> >> >> > Gayan
>> >> >> >
>> >> >> >
>> >> >> > On Tue, Aug 26, 2014 at 4:14 PM, chris snow <ch...@gmail.com>
>> >> >> > wrote:
>> >> >> >>
>> >> >> >> I guess the agent will need to be configurable to support STOMP
>> >> >> >> for
>> >> >> >> ActiveMQ installations or AMQP for WSO2MB installations.
>> >> >> >>
>> >> >> >> Also, I raised this JIRA:
>> >> >> >> https://issues.apache.org/jira/browse/AMQ-5332 - it won't happen
>> >> >> >> in
>> >> >> >> our timescales, but I thought it was worth adding as it seems a
>> >> >> >> lot
>> >> >> >> of
>> >> >> >> people hit issues with ActiveMQ only supporting AMQP 1.0.
>> >> >> >>
>> >> >> >>
>> >> >> >> On Tue, Aug 26, 2014 at 8:22 AM, Gayan Gunarathne
>> >> >> >> <ga...@wso2.com>
>> >> >> >> wrote:
>> >> >> >> > Yeah Chris.
>> >> >> >> >
>> >> >> >> > Exactly the problem we have.Currently lot of python amqp agents
>> >> >> >> > for
>> >> >> >> > RabbitMQ
>> >> >> >> > which supports AMQP 0-9.[1].
>> >> >> >> >
>> >> >> >> > [1] https://www.rabbitmq.com/specification.html
>> >> >> >> >
>> >> >> >> > Thanks,
>> >> >> >> > Gayan
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > On Tue, Aug 26, 2014 at 12:25 PM, chris snow
>> >> >> >> > <ch...@gmail.com>
>> >> >> >> > wrote:
>> >> >> >> >>
>> >> >> >> >> Thanks Gayan!
>> >> >> >> >>
>> >> >> >> >> What errors were you hitting?  The few clients I tried give me
>> >> >> >> >> the
>> >> >> >> >> error
>> >> >> >> >> [1].
>> >> >> >> >>
>> >> >> >> >> It seems some of f the python amqp libraries don't support
>> >> >> >> >> version
>> >> >> >> >> 1.0
>> >> >> >> >> of
>> >> >> >> >> AMQP?
>> >> >> >> >>
>> >> >> >> >> ---
>> >> >> >> >> [1]
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html
>> >> >> >> >>
>> >> >> >> >> On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne
>> >> >> >> >> <ga...@wso2.com>
>> >> >> >> >> wrote:
>> >> >> >> >> > Hi Chirs,
>> >> >> >> >> >
>> >> >> >> >> > Please find the python client library samples which we are
>> >> >> >> >> > tested.
>> >> >> >> >> > https://github.com/gayangunarathne/amqp_python_libraries
>> >> >> >> >> >
>> >> >> >> >> > Thanks,
>> >> >> >> >> > Gayan
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne
>> >> >> >> >> > <ga...@wso2.com>
>> >> >> >> >> > wrote:
>> >> >> >> >> >>
>> >> >> >> >> >> Hi Chris,
>> >> >> >> >> >>
>> >> >> >> >> >> Yeah. We looked that qpid messaging as well.For that we
>> >> >> >> >> >> need
>> >> >> >> >> >> that
>> >> >> >> >> >> qpid
>> >> >> >> >> >> proton library .Is n't?
>> >> >> >> >> >> AFAIR it is based on CMake and It requires java also[1].
>> >> >> >> >> >>
>> >> >> >> >> >> Also we will share with you the samples we try with the
>> >> >> >> >> >> amqp
>> >> >> >> >> >> clients.
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >> [1]http://svn.apache.org/repos/asf/qpid/proton/trunk/README
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >> Thanks,
>> >> >> >> >> >> Gayan
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >> On Mon, Aug 25, 2014 at 7:33 PM, chris snow
>> >> >> >> >> >> <ch...@gmail.com>
>> >> >> >> >> >> wrote:
>> >> >> >> >> >>>
>> >> >> >> >> >>> hi Gayan,
>> >> >> >> >> >>>
>> >> >> >> >> >>> What are the issues that you received from the various
>> >> >> >> >> >>> AMQP
>> >> >> >> >> >>> libraries?
>> >> >> >> >> >>> Do you have a code repo that I can take a look at to try
>> >> >> >> >> >>> and
>> >> >> >> >> >>> replicate
>> >> >> >> >> >>> the errors?
>> >> >> >> >> >>> Did you investigate qpid [1]?
>> >> >> >> >> >>>
>> >> >> >> >> >>> Many thanks
>> >> >> >> >> >>>
>> >> >> >> >> >>> Chris
>> >> >> >> >> >>>
>> >> >> >> >> >>> ---
>> >> >> >> >> >>> [1]
>> >> >> >> >> >>>
>> >> >> >> >> >>>
>> >> >> >> >> >>>
>> >> >> >> >> >>>
>> >> >> >> >> >>>
>> >> >> >> >> >>> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
>> >> >> >> >> >>>
>> >> >> >> >> >>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne
>> >> >> >> >> >>> <ga...@wso2.com>
>> >> >> >> >> >>> wrote:
>> >> >> >> >> >>> > Hi Chris,
>> >> >> >> >> >>> >
>> >> >> >> >> >>> > We try to replace our java cartridge agent with the
>> >> >> >> >> >>> > python
>> >> >> >> >> >>> > as
>> >> >> >> >> >>> > after
>> >> >> >> >> >>> > that we
>> >> >> >> >> >>> > can remove the java dependency from the cartridge
>> >> >> >> >> >>> > itself.I
>> >> >> >> >> >>> > guess
>> >> >> >> >> >>> > this
>> >> >> >> >> >>> > is
>> >> >> >> >> >>> > also vital for the Docker support too.
>> >> >> >> >> >>> >
>> >> >> >> >> >>> > In Apache ActiveMQ site also AMQP support is based on
>> >> >> >> >> >>> > the
>> >> >> >> >> >>> > JMS/AMQP[1].
>> >> >> >> >> >>> > I
>> >> >> >> >> >>> > guess message broker implementation will be different
>> >> >> >> >> >>> > from
>> >> >> >> >> >>> > one
>> >> >> >> >> >>> > MQ
>> >> >> >> >> >>> > to
>> >> >> >> >> >>> > other
>> >> >> >> >> >>> > as some python client which able to connect with
>> >> >> >> >> >>> > RabbitMQ
>> >> >> >> >> >>> > successfully
>> >> >> >> >> >>> > ,still fails with the ActiveMQ.
>> >> >> >> >> >>> >
>> >> >> >> >> >>> > [1] http://activemq.apache.org/amqp.html
>> >> >> >> >> >>> >
>> >> >> >> >> >>> > Thanks,
>> >> >> >> >> >>> > Gayan
>> >> >> >> >> >>> >
>> >> >> >> >> >>> >
>> >> >> >> >> >>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow
>> >> >> >> >> >>> > <ch...@gmail.com>
>> >> >> >> >> >>> > wrote:
>> >> >> >> >> >>> >>
>> >> >> >> >> >>> >> Is the issue because we currently have a mix of
>> >> >> >> >> >>> >> JMS/AMQP/Jndi?
>> >> >> >> >> >>> >> If
>> >> >> >> >> >>> >> we
>> >> >> >> >> >>> >> had a
>> >> >> >> >> >>> >> pure AMQP approach would these problems go away?
>> >> >> >> >> >>> >> AFAIK,
>> >> >> >> >> >>> >> one
>> >> >> >> >> >>> >> of
>> >> >> >> >> >>> >> the
>> >> >> >> >> >>> >> drivers
>> >> >> >> >> >>> >> for AMQP was interoperability with all languages,
>> >> >> >> >> >>> >> rather
>> >> >> >> >> >>> >> than
>> >> >> >> >> >>> >> jms
>> >> >> >> >> >>> >> which is
>> >> >> >> >> >>> >> focused on Java.
>> >> >> >> >> >>> >>
>> >> >> >> >> >>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne"
>> >> >> >> >> >>> >> <ga...@wso2.com>
>> >> >> >> >> >>> >> wrote:
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>> Hi All,
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>> With related to the python cartridge agent , Dinesh
>> >> >> >> >> >>> >>> and
>> >> >> >> >> >>> >>> myself
>> >> >> >> >> >>> >>> do
>> >> >> >> >> >>> >>> some
>> >> >> >> >> >>> >>> research related to the Apache ActiveMQ connectivity
>> >> >> >> >> >>> >>> using
>> >> >> >> >> >>> >>> the
>> >> >> >> >> >>> >>> python
>> >> >> >> >> >>> >>> client.
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>> Following our findings on this.
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>> AMQP
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>> AFAWU we need to have  pyactivemq , which is a Python
>> >> >> >> >> >>> >>> wrapper
>> >> >> >> >> >>> >>> for
>> >> >> >> >> >>> >>> the
>> >> >> >> >> >>> >>> ActiveMQ C++ Library,[1] But we won't be able to use
>> >> >> >> >> >>> >>> this
>> >> >> >> >> >>> >>> module
>> >> >> >> >> >>> >>> as
>> >> >> >> >> >>> >>> it is
>> >> >> >> >> >>> >>> platform dependent.
>> >> >> >> >> >>> >>> Also we checked the following client libraries as
>> >> >> >> >> >>> >>> well(those
>> >> >> >> >> >>> >>> are
>> >> >> >> >> >>> >>> recommended with the RabbitMQ)
>> >> >> >> >> >>> >>> [3] py-amqplib
>> >> >> >> >> >>> >>> [4] txAMQP
>> >> >> >> >> >>> >>> [5] pika
>> >> >> >> >> >>> >>> [6] Carrot (has copy right licence)
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>> But we were unable to connect Apache ActiveMQ with
>> >> >> >> >> >>> >>> those
>> >> >> >> >> >>> >>> as
>> >> >> >> >> >>> >>> well.(Even
>> >> >> >> >> >>> >>> through we can connect those with the RabbitMQ)
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>> STOMP[2]
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>> With the STOMP protocol , We were able to connect
>> >> >> >> >> >>> >>> Apache
>> >> >> >> >> >>> >>> ActiveMQ
>> >> >> >> >> >>> >>> by
>> >> >> >> >> >>> >>> using the stomp module.[7]
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>> As a summary,
>> >> >> >> >> >>> >>> It seems like we need to use STOMP to connect
>> >> >> >> >> >>> >>> ActiveMQ.
>> >> >> >> >> >>> >>> But
>> >> >> >> >> >>> >>> still,
>> >> >> >> >> >>> >>> WSO2
>> >> >> >> >> >>> >>> message broker is not supporting STOMP protocol.
>> >> >> >> >> >>> >>> IMO Shall we used the hybrid model for connect to the
>> >> >> >> >> >>> >>> message
>> >> >> >> >> >>> >>> queues.
>> >> >> >> >> >>> >>> Such that , we can use STOMP to connect the ActiveMQ
>> >> >> >> >> >>> >>> and
>> >> >> >> >> >>> >>> AMQP
>> >> >> >> >> >>> >>> to
>> >> >> >> >> >>> >>> connect
>> >> >> >> >> >>> >>> WSO2 MB. WDYT?
>> >> >> >> >> >>> >>> With txAMQP[4] we were able to connect WSO2 MB using
>> >> >> >> >> >>> >>> the
>> >> >> >> >> >>> >>> qpid
>> >> >> >> >> >>> >>> amqp
>> >> >> >> >> >>> >>> specifications.
>> >> >> >> >> >>> >>> Please share your suggestions and thoughts on this.
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>> [1] http://activemq.apache.org/python.html
>> >> >> >> >> >>> >>> [2] http://activemq.apache.org/stomp.html
>> >> >> >> >> >>> >>> [3] http://barryp.org/software/py-amqplib/
>> >> >> >> >> >>> >>> [4] https://launchpad.net/txamqp
>> >> >> >> >> >>> >>> [5] https://github.com/pika/pika
>> >> >> >> >> >>> >>> [6] https://pypi.python.org/pypi/carrot/
>> >> >> >> >> >>> >>> [7] https://github.com/jasonrbriggs/stomp.py
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>> @Dinesh , Please add If I missed anything here.
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>> Thanks,
>> >> >> >> >> >>> >>> Gayan
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>> --
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >>> Gayan Gunarathne
>> >> >> >> >> >>> >>> Technical Lead
>> >> >> >> >> >>> >>> WSO2 Inc. (http://wso2.com)
>> >> >> >> >> >>> >>> email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >> >>> >>>
>> >> >> >> >> >>> >
>> >> >> >> >> >>> >
>> >> >> >> >> >>> >
>> >> >> >> >> >>> >
>> >> >> >> >> >>> > --
>> >> >> >> >> >>> > Best Regards,
>> >> >> >> >> >>> >
>> >> >> >> >> >>> > Gayan Gunarathne
>> >> >> >> >> >>> > Technical Lead
>> >> >> >> >> >>> > WSO2 Inc. (http://wso2.com)
>> >> >> >> >> >>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >> >>> >
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >>
>> >> >> >> >> >> --
>> >> >> >> >> >> Best Regards,
>> >> >> >> >> >>
>> >> >> >> >> >> Gayan Gunarathne
>> >> >> >> >> >> Technical Lead
>> >> >> >> >> >> WSO2 Inc. (http://wso2.com)
>> >> >> >> >> >> email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >> >>
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> >
>> >> >> >> >> > --
>> >> >> >> >> > Best Regards,
>> >> >> >> >> >
>> >> >> >> >> > Gayan Gunarathne
>> >> >> >> >> > Technical Lead
>> >> >> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > --
>> >> >> >> > Best Regards,
>> >> >> >> >
>> >> >> >> > Gayan Gunarathne
>> >> >> >> > Technical Lead
>> >> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > Best Regards,
>> >> >> >
>> >> >> > Gayan Gunarathne
>> >> >> > Technical Lead
>> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Akila Ravihansa Perera
>> >> >> WSO2 Inc
>> >> >>
>> >> >> Blog: http://ravihansa3000.blogspot.com
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Best Regards,
>> >> >
>> >> > Gayan Gunarathne
>> >> > Technical Lead
>> >> > WSO2 Inc. (http://wso2.com)
>> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >
>> >
>> >
>> >
>> >
>> > --
>> > Best Regards,
>> >
>> > Gayan Gunarathne
>> > Technical Lead
>> > WSO2 Inc. (http://wso2.com)
>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >
>
>
>
>
> --
> Best Regards,
>
> Gayan Gunarathne
> Technical Lead
> WSO2 Inc. (http://wso2.com)
> email  : gayang@wso2.com  | mobile : +94 766819985
>

Re: Stratos Python Cartridge Agent

Posted by Gayan Gunarathne <ga...@wso2.com>.
Hi Chris,

AFAIR that build will added the attached file list (please find the
attached document) to the Ubuntu and it uses those files.IMO with fedora
build that files will be different and it will be platform dependent. WDYT?

Thanks,
Gayan


On Thu, Aug 28, 2014 at 2:47 PM, chris snow <ch...@gmail.com> wrote:

> Ah, ok.  So the problem is just that we need to setup a development
> environment to compile the qpid application?  After qpid has been
> compiled to a binary, the development environment is no longer
> required?  Can we use fedora to build a qpid binary for ubuntu?
>
>
> On Thu, Aug 28, 2014 at 9:47 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
> > Yeah Chris.It is the command set for the fedora as mention in their
> read-me
> > file.
> >
> > For Ubuntu we can use the following command sets.
> >
> > # required dependencies
> > sudo apt-get install gcc cmake uuid-dev
> >
> > # dependencies needed for ssl support
> > sudo apt-get install libssl-dev
> >
> > # dependencies needed for bindings
> > sudo apt-get install swig python-dev ruby-dev php5-dev libperl-dev
> >
> > sudo apt-get install oracle-java8-installer
> >
> > sudo apt-get install python-epydoc
> >
> > Thanks,
> > Gayan
> >
> >
> >
> >
> >
> > On Thu, Aug 28, 2014 at 12:53 PM, chris snow <ch...@gmail.com>
> wrote:
> >>
> >> On Wed, Aug 27, 2014 at 6:26 AM, Gayan Gunarathne <ga...@wso2.com>
> wrote:
> >> > Hi Akila,
> >> >
> >> > When we tried with the Apache Qpid Proton-C library we did the
> following
> >> > prerequisites.
> >> >
> >> >     # required dependencies
> >> >     yum install gcc cmake libuuid-devel
> >> >
> >> >     # dependencies needed for ssl support
> >> >     yum install openssl-devel
> >> >
> >> >     # dependencies needed for bindings
> >> >     yum install swig python-devel ruby-devel php-devel perl-devel
> >> >
> >> >     yum install java-1.8.0-openjdk-devel
> >> >
> >> >     yum install epydoc
> >> >
> >> >
> >> > After that only we were able to build in the Ubuntu and run the python
> >> > client with proton support.I guess for every platform we need to do
> the
> >> > same
> >> > and have to maintain different settings for different platform.WDYT?
> >> >
> >> Did you mean to say Ubuntu here? The commands above aren't for Ubuntu.
> >> >
> >> > When it comes to the large number of instance, we need to do load
> >> > testing
> >> > with the STOMP protocol.Thanks for pointing out this.
> >> >
> >> >
> >> >
> >> > Thanks,
> >> >
> >> > Gayan
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> >
> >> > On Wed, Aug 27, 2014 at 10:33 AM, Akila Ravihansa Perera
> >> > <ra...@wso2.com> wrote:
> >> >>
> >> >> Hi Gayan,
> >> >>
> >> >> What are the concerns/blockers for using Apache Qpid Proton-C library
> >> >> [1] with Python binding?
> >> >>
> >> >> As I understood, this is cross-platform compatible (Linux/Windows)
> and
> >> >> you do not need Java. However, there is a pure Java implementation
> but
> >> >> we can use C/Python binding. We will have to investigate this further
> >> >> though.
> >> >>
> >> >> Have we made an analysis of using STOMP vs AMQP as the communication
> >> >> protocol with MB for cartridge agent? We might have to consider this
> >> >> because with the upcoming Docker support there can be about 1000+
> >> >> instances communicating with the MB.
> >> >>
> >> >> [1] https://github.com/apache/qpid-proton
> >> >>
> >> >> On Tue, Aug 26, 2014 at 4:28 PM, Gayan Gunarathne <ga...@wso2.com>
> >> >> wrote:
> >> >> > Hi Chris,
> >> >> >
> >> >> > Thanks for adding the JIRA for ActiveMQ. Yeah It will be a worth
> >> >> > addition.
> >> >> >
> >> >> >
> >> >> > Thanks,
> >> >> > Gayan
> >> >> >
> >> >> >
> >> >> > On Tue, Aug 26, 2014 at 4:14 PM, chris snow <ch...@gmail.com>
> >> >> > wrote:
> >> >> >>
> >> >> >> I guess the agent will need to be configurable to support STOMP
> for
> >> >> >> ActiveMQ installations or AMQP for WSO2MB installations.
> >> >> >>
> >> >> >> Also, I raised this JIRA:
> >> >> >> https://issues.apache.org/jira/browse/AMQ-5332 - it won't happen
> in
> >> >> >> our timescales, but I thought it was worth adding as it seems a
> lot
> >> >> >> of
> >> >> >> people hit issues with ActiveMQ only supporting AMQP 1.0.
> >> >> >>
> >> >> >>
> >> >> >> On Tue, Aug 26, 2014 at 8:22 AM, Gayan Gunarathne <
> gayang@wso2.com>
> >> >> >> wrote:
> >> >> >> > Yeah Chris.
> >> >> >> >
> >> >> >> > Exactly the problem we have.Currently lot of python amqp agents
> >> >> >> > for
> >> >> >> > RabbitMQ
> >> >> >> > which supports AMQP 0-9.[1].
> >> >> >> >
> >> >> >> > [1] https://www.rabbitmq.com/specification.html
> >> >> >> >
> >> >> >> > Thanks,
> >> >> >> > Gayan
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > On Tue, Aug 26, 2014 at 12:25 PM, chris snow <
> chsnow123@gmail.com>
> >> >> >> > wrote:
> >> >> >> >>
> >> >> >> >> Thanks Gayan!
> >> >> >> >>
> >> >> >> >> What errors were you hitting?  The few clients I tried give me
> >> >> >> >> the
> >> >> >> >> error
> >> >> >> >> [1].
> >> >> >> >>
> >> >> >> >> It seems some of f the python amqp libraries don't support
> >> >> >> >> version
> >> >> >> >> 1.0
> >> >> >> >> of
> >> >> >> >> AMQP?
> >> >> >> >>
> >> >> >> >> ---
> >> >> >> >> [1]
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html
> >> >> >> >>
> >> >> >> >> On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne
> >> >> >> >> <ga...@wso2.com>
> >> >> >> >> wrote:
> >> >> >> >> > Hi Chirs,
> >> >> >> >> >
> >> >> >> >> > Please find the python client library samples which we are
> >> >> >> >> > tested.
> >> >> >> >> > https://github.com/gayangunarathne/amqp_python_libraries
> >> >> >> >> >
> >> >> >> >> > Thanks,
> >> >> >> >> > Gayan
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne
> >> >> >> >> > <ga...@wso2.com>
> >> >> >> >> > wrote:
> >> >> >> >> >>
> >> >> >> >> >> Hi Chris,
> >> >> >> >> >>
> >> >> >> >> >> Yeah. We looked that qpid messaging as well.For that we need
> >> >> >> >> >> that
> >> >> >> >> >> qpid
> >> >> >> >> >> proton library .Is n't?
> >> >> >> >> >> AFAIR it is based on CMake and It requires java also[1].
> >> >> >> >> >>
> >> >> >> >> >> Also we will share with you the samples we try with the amqp
> >> >> >> >> >> clients.
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> [1]http://svn.apache.org/repos/asf/qpid/proton/trunk/README
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> Thanks,
> >> >> >> >> >> Gayan
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> On Mon, Aug 25, 2014 at 7:33 PM, chris snow
> >> >> >> >> >> <ch...@gmail.com>
> >> >> >> >> >> wrote:
> >> >> >> >> >>>
> >> >> >> >> >>> hi Gayan,
> >> >> >> >> >>>
> >> >> >> >> >>> What are the issues that you received from the various AMQP
> >> >> >> >> >>> libraries?
> >> >> >> >> >>> Do you have a code repo that I can take a look at to try
> and
> >> >> >> >> >>> replicate
> >> >> >> >> >>> the errors?
> >> >> >> >> >>> Did you investigate qpid [1]?
> >> >> >> >> >>>
> >> >> >> >> >>> Many thanks
> >> >> >> >> >>>
> >> >> >> >> >>> Chris
> >> >> >> >> >>>
> >> >> >> >> >>> ---
> >> >> >> >> >>> [1]
> >> >> >> >> >>>
> >> >> >> >> >>>
> >> >> >> >> >>>
> >> >> >> >> >>>
> >> >> >> >> >>>
> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
> >> >> >> >> >>>
> >> >> >> >> >>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne
> >> >> >> >> >>> <ga...@wso2.com>
> >> >> >> >> >>> wrote:
> >> >> >> >> >>> > Hi Chris,
> >> >> >> >> >>> >
> >> >> >> >> >>> > We try to replace our java cartridge agent with the
> python
> >> >> >> >> >>> > as
> >> >> >> >> >>> > after
> >> >> >> >> >>> > that we
> >> >> >> >> >>> > can remove the java dependency from the cartridge
> itself.I
> >> >> >> >> >>> > guess
> >> >> >> >> >>> > this
> >> >> >> >> >>> > is
> >> >> >> >> >>> > also vital for the Docker support too.
> >> >> >> >> >>> >
> >> >> >> >> >>> > In Apache ActiveMQ site also AMQP support is based on the
> >> >> >> >> >>> > JMS/AMQP[1].
> >> >> >> >> >>> > I
> >> >> >> >> >>> > guess message broker implementation will be different
> from
> >> >> >> >> >>> > one
> >> >> >> >> >>> > MQ
> >> >> >> >> >>> > to
> >> >> >> >> >>> > other
> >> >> >> >> >>> > as some python client which able to connect with RabbitMQ
> >> >> >> >> >>> > successfully
> >> >> >> >> >>> > ,still fails with the ActiveMQ.
> >> >> >> >> >>> >
> >> >> >> >> >>> > [1] http://activemq.apache.org/amqp.html
> >> >> >> >> >>> >
> >> >> >> >> >>> > Thanks,
> >> >> >> >> >>> > Gayan
> >> >> >> >> >>> >
> >> >> >> >> >>> >
> >> >> >> >> >>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow
> >> >> >> >> >>> > <ch...@gmail.com>
> >> >> >> >> >>> > wrote:
> >> >> >> >> >>> >>
> >> >> >> >> >>> >> Is the issue because we currently have a mix of
> >> >> >> >> >>> >> JMS/AMQP/Jndi?
> >> >> >> >> >>> >> If
> >> >> >> >> >>> >> we
> >> >> >> >> >>> >> had a
> >> >> >> >> >>> >> pure AMQP approach would these problems go away?  AFAIK,
> >> >> >> >> >>> >> one
> >> >> >> >> >>> >> of
> >> >> >> >> >>> >> the
> >> >> >> >> >>> >> drivers
> >> >> >> >> >>> >> for AMQP was interoperability with all languages, rather
> >> >> >> >> >>> >> than
> >> >> >> >> >>> >> jms
> >> >> >> >> >>> >> which is
> >> >> >> >> >>> >> focused on Java.
> >> >> >> >> >>> >>
> >> >> >> >> >>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne" <
> gayang@wso2.com>
> >> >> >> >> >>> >> wrote:
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>> Hi All,
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>> With related to the python cartridge agent , Dinesh and
> >> >> >> >> >>> >>> myself
> >> >> >> >> >>> >>> do
> >> >> >> >> >>> >>> some
> >> >> >> >> >>> >>> research related to the Apache ActiveMQ connectivity
> >> >> >> >> >>> >>> using
> >> >> >> >> >>> >>> the
> >> >> >> >> >>> >>> python
> >> >> >> >> >>> >>> client.
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>> Following our findings on this.
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>> AMQP
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>> AFAWU we need to have  pyactivemq , which is a Python
> >> >> >> >> >>> >>> wrapper
> >> >> >> >> >>> >>> for
> >> >> >> >> >>> >>> the
> >> >> >> >> >>> >>> ActiveMQ C++ Library,[1] But we won't be able to use
> this
> >> >> >> >> >>> >>> module
> >> >> >> >> >>> >>> as
> >> >> >> >> >>> >>> it is
> >> >> >> >> >>> >>> platform dependent.
> >> >> >> >> >>> >>> Also we checked the following client libraries as
> >> >> >> >> >>> >>> well(those
> >> >> >> >> >>> >>> are
> >> >> >> >> >>> >>> recommended with the RabbitMQ)
> >> >> >> >> >>> >>> [3] py-amqplib
> >> >> >> >> >>> >>> [4] txAMQP
> >> >> >> >> >>> >>> [5] pika
> >> >> >> >> >>> >>> [6] Carrot (has copy right licence)
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>> But we were unable to connect Apache ActiveMQ with
> those
> >> >> >> >> >>> >>> as
> >> >> >> >> >>> >>> well.(Even
> >> >> >> >> >>> >>> through we can connect those with the RabbitMQ)
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>> STOMP[2]
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>> With the STOMP protocol , We were able to connect
> Apache
> >> >> >> >> >>> >>> ActiveMQ
> >> >> >> >> >>> >>> by
> >> >> >> >> >>> >>> using the stomp module.[7]
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>> As a summary,
> >> >> >> >> >>> >>> It seems like we need to use STOMP to connect ActiveMQ.
> >> >> >> >> >>> >>> But
> >> >> >> >> >>> >>> still,
> >> >> >> >> >>> >>> WSO2
> >> >> >> >> >>> >>> message broker is not supporting STOMP protocol.
> >> >> >> >> >>> >>> IMO Shall we used the hybrid model for connect to the
> >> >> >> >> >>> >>> message
> >> >> >> >> >>> >>> queues.
> >> >> >> >> >>> >>> Such that , we can use STOMP to connect the ActiveMQ
> and
> >> >> >> >> >>> >>> AMQP
> >> >> >> >> >>> >>> to
> >> >> >> >> >>> >>> connect
> >> >> >> >> >>> >>> WSO2 MB. WDYT?
> >> >> >> >> >>> >>> With txAMQP[4] we were able to connect WSO2 MB using
> the
> >> >> >> >> >>> >>> qpid
> >> >> >> >> >>> >>> amqp
> >> >> >> >> >>> >>> specifications.
> >> >> >> >> >>> >>> Please share your suggestions and thoughts on this.
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>> [1] http://activemq.apache.org/python.html
> >> >> >> >> >>> >>> [2] http://activemq.apache.org/stomp.html
> >> >> >> >> >>> >>> [3] http://barryp.org/software/py-amqplib/
> >> >> >> >> >>> >>> [4] https://launchpad.net/txamqp
> >> >> >> >> >>> >>> [5] https://github.com/pika/pika
> >> >> >> >> >>> >>> [6] https://pypi.python.org/pypi/carrot/
> >> >> >> >> >>> >>> [7] https://github.com/jasonrbriggs/stomp.py
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>> @Dinesh , Please add If I missed anything here.
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>> Thanks,
> >> >> >> >> >>> >>> Gayan
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>> --
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >>> Gayan Gunarathne
> >> >> >> >> >>> >>> Technical Lead
> >> >> >> >> >>> >>> WSO2 Inc. (http://wso2.com)
> >> >> >> >> >>> >>> email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >>> >>>
> >> >> >> >> >>> >
> >> >> >> >> >>> >
> >> >> >> >> >>> >
> >> >> >> >> >>> >
> >> >> >> >> >>> > --
> >> >> >> >> >>> > Best Regards,
> >> >> >> >> >>> >
> >> >> >> >> >>> > Gayan Gunarathne
> >> >> >> >> >>> > Technical Lead
> >> >> >> >> >>> > WSO2 Inc. (http://wso2.com)
> >> >> >> >> >>> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >>> >
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >>
> >> >> >> >> >> --
> >> >> >> >> >> Best Regards,
> >> >> >> >> >>
> >> >> >> >> >> Gayan Gunarathne
> >> >> >> >> >> Technical Lead
> >> >> >> >> >> WSO2 Inc. (http://wso2.com)
> >> >> >> >> >> email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >>
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> >
> >> >> >> >> > --
> >> >> >> >> > Best Regards,
> >> >> >> >> >
> >> >> >> >> > Gayan Gunarathne
> >> >> >> >> > Technical Lead
> >> >> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > --
> >> >> >> > Best Regards,
> >> >> >> >
> >> >> >> > Gayan Gunarathne
> >> >> >> > Technical Lead
> >> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Best Regards,
> >> >> >
> >> >> > Gayan Gunarathne
> >> >> > Technical Lead
> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Akila Ravihansa Perera
> >> >> WSO2 Inc
> >> >>
> >> >> Blog: http://ravihansa3000.blogspot.com
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Best Regards,
> >> >
> >> > Gayan Gunarathne
> >> > Technical Lead
> >> > WSO2 Inc. (http://wso2.com)
> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >
> >
> >
> >
> >
> > --
> > Best Regards,
> >
> > Gayan Gunarathne
> > Technical Lead
> > WSO2 Inc. (http://wso2.com)
> > email  : gayang@wso2.com  | mobile : +94 766819985
> >
>



-- 
Best Regards,

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gayang@wso2.com  | mobile : +94 766819985

Re: Stratos Python Cartridge Agent

Posted by chris snow <ch...@gmail.com>.
Ah, ok.  So the problem is just that we need to setup a development
environment to compile the qpid application?  After qpid has been
compiled to a binary, the development environment is no longer
required?  Can we use fedora to build a qpid binary for ubuntu?


On Thu, Aug 28, 2014 at 9:47 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
> Yeah Chris.It is the command set for the fedora as mention in their read-me
> file.
>
> For Ubuntu we can use the following command sets.
>
> # required dependencies
> sudo apt-get install gcc cmake uuid-dev
>
> # dependencies needed for ssl support
> sudo apt-get install libssl-dev
>
> # dependencies needed for bindings
> sudo apt-get install swig python-dev ruby-dev php5-dev libperl-dev
>
> sudo apt-get install oracle-java8-installer
>
> sudo apt-get install python-epydoc
>
> Thanks,
> Gayan
>
>
>
>
>
> On Thu, Aug 28, 2014 at 12:53 PM, chris snow <ch...@gmail.com> wrote:
>>
>> On Wed, Aug 27, 2014 at 6:26 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
>> > Hi Akila,
>> >
>> > When we tried with the Apache Qpid Proton-C library we did the following
>> > prerequisites.
>> >
>> >     # required dependencies
>> >     yum install gcc cmake libuuid-devel
>> >
>> >     # dependencies needed for ssl support
>> >     yum install openssl-devel
>> >
>> >     # dependencies needed for bindings
>> >     yum install swig python-devel ruby-devel php-devel perl-devel
>> >
>> >     yum install java-1.8.0-openjdk-devel
>> >
>> >     yum install epydoc
>> >
>> >
>> > After that only we were able to build in the Ubuntu and run the python
>> > client with proton support.I guess for every platform we need to do the
>> > same
>> > and have to maintain different settings for different platform.WDYT?
>> >
>> Did you mean to say Ubuntu here? The commands above aren't for Ubuntu.
>> >
>> > When it comes to the large number of instance, we need to do load
>> > testing
>> > with the STOMP protocol.Thanks for pointing out this.
>> >
>> >
>> >
>> > Thanks,
>> >
>> > Gayan
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Wed, Aug 27, 2014 at 10:33 AM, Akila Ravihansa Perera
>> > <ra...@wso2.com> wrote:
>> >>
>> >> Hi Gayan,
>> >>
>> >> What are the concerns/blockers for using Apache Qpid Proton-C library
>> >> [1] with Python binding?
>> >>
>> >> As I understood, this is cross-platform compatible (Linux/Windows) and
>> >> you do not need Java. However, there is a pure Java implementation but
>> >> we can use C/Python binding. We will have to investigate this further
>> >> though.
>> >>
>> >> Have we made an analysis of using STOMP vs AMQP as the communication
>> >> protocol with MB for cartridge agent? We might have to consider this
>> >> because with the upcoming Docker support there can be about 1000+
>> >> instances communicating with the MB.
>> >>
>> >> [1] https://github.com/apache/qpid-proton
>> >>
>> >> On Tue, Aug 26, 2014 at 4:28 PM, Gayan Gunarathne <ga...@wso2.com>
>> >> wrote:
>> >> > Hi Chris,
>> >> >
>> >> > Thanks for adding the JIRA for ActiveMQ. Yeah It will be a worth
>> >> > addition.
>> >> >
>> >> >
>> >> > Thanks,
>> >> > Gayan
>> >> >
>> >> >
>> >> > On Tue, Aug 26, 2014 at 4:14 PM, chris snow <ch...@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> I guess the agent will need to be configurable to support STOMP for
>> >> >> ActiveMQ installations or AMQP for WSO2MB installations.
>> >> >>
>> >> >> Also, I raised this JIRA:
>> >> >> https://issues.apache.org/jira/browse/AMQ-5332 - it won't happen in
>> >> >> our timescales, but I thought it was worth adding as it seems a lot
>> >> >> of
>> >> >> people hit issues with ActiveMQ only supporting AMQP 1.0.
>> >> >>
>> >> >>
>> >> >> On Tue, Aug 26, 2014 at 8:22 AM, Gayan Gunarathne <ga...@wso2.com>
>> >> >> wrote:
>> >> >> > Yeah Chris.
>> >> >> >
>> >> >> > Exactly the problem we have.Currently lot of python amqp agents
>> >> >> > for
>> >> >> > RabbitMQ
>> >> >> > which supports AMQP 0-9.[1].
>> >> >> >
>> >> >> > [1] https://www.rabbitmq.com/specification.html
>> >> >> >
>> >> >> > Thanks,
>> >> >> > Gayan
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On Tue, Aug 26, 2014 at 12:25 PM, chris snow <ch...@gmail.com>
>> >> >> > wrote:
>> >> >> >>
>> >> >> >> Thanks Gayan!
>> >> >> >>
>> >> >> >> What errors were you hitting?  The few clients I tried give me
>> >> >> >> the
>> >> >> >> error
>> >> >> >> [1].
>> >> >> >>
>> >> >> >> It seems some of f the python amqp libraries don't support
>> >> >> >> version
>> >> >> >> 1.0
>> >> >> >> of
>> >> >> >> AMQP?
>> >> >> >>
>> >> >> >> ---
>> >> >> >> [1]
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html
>> >> >> >>
>> >> >> >> On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne
>> >> >> >> <ga...@wso2.com>
>> >> >> >> wrote:
>> >> >> >> > Hi Chirs,
>> >> >> >> >
>> >> >> >> > Please find the python client library samples which we are
>> >> >> >> > tested.
>> >> >> >> > https://github.com/gayangunarathne/amqp_python_libraries
>> >> >> >> >
>> >> >> >> > Thanks,
>> >> >> >> > Gayan
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne
>> >> >> >> > <ga...@wso2.com>
>> >> >> >> > wrote:
>> >> >> >> >>
>> >> >> >> >> Hi Chris,
>> >> >> >> >>
>> >> >> >> >> Yeah. We looked that qpid messaging as well.For that we need
>> >> >> >> >> that
>> >> >> >> >> qpid
>> >> >> >> >> proton library .Is n't?
>> >> >> >> >> AFAIR it is based on CMake and It requires java also[1].
>> >> >> >> >>
>> >> >> >> >> Also we will share with you the samples we try with the amqp
>> >> >> >> >> clients.
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> [1]http://svn.apache.org/repos/asf/qpid/proton/trunk/README
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> Thanks,
>> >> >> >> >> Gayan
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> On Mon, Aug 25, 2014 at 7:33 PM, chris snow
>> >> >> >> >> <ch...@gmail.com>
>> >> >> >> >> wrote:
>> >> >> >> >>>
>> >> >> >> >>> hi Gayan,
>> >> >> >> >>>
>> >> >> >> >>> What are the issues that you received from the various AMQP
>> >> >> >> >>> libraries?
>> >> >> >> >>> Do you have a code repo that I can take a look at to try and
>> >> >> >> >>> replicate
>> >> >> >> >>> the errors?
>> >> >> >> >>> Did you investigate qpid [1]?
>> >> >> >> >>>
>> >> >> >> >>> Many thanks
>> >> >> >> >>>
>> >> >> >> >>> Chris
>> >> >> >> >>>
>> >> >> >> >>> ---
>> >> >> >> >>> [1]
>> >> >> >> >>>
>> >> >> >> >>>
>> >> >> >> >>>
>> >> >> >> >>>
>> >> >> >> >>> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
>> >> >> >> >>>
>> >> >> >> >>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne
>> >> >> >> >>> <ga...@wso2.com>
>> >> >> >> >>> wrote:
>> >> >> >> >>> > Hi Chris,
>> >> >> >> >>> >
>> >> >> >> >>> > We try to replace our java cartridge agent with the python
>> >> >> >> >>> > as
>> >> >> >> >>> > after
>> >> >> >> >>> > that we
>> >> >> >> >>> > can remove the java dependency from the cartridge itself.I
>> >> >> >> >>> > guess
>> >> >> >> >>> > this
>> >> >> >> >>> > is
>> >> >> >> >>> > also vital for the Docker support too.
>> >> >> >> >>> >
>> >> >> >> >>> > In Apache ActiveMQ site also AMQP support is based on the
>> >> >> >> >>> > JMS/AMQP[1].
>> >> >> >> >>> > I
>> >> >> >> >>> > guess message broker implementation will be different from
>> >> >> >> >>> > one
>> >> >> >> >>> > MQ
>> >> >> >> >>> > to
>> >> >> >> >>> > other
>> >> >> >> >>> > as some python client which able to connect with RabbitMQ
>> >> >> >> >>> > successfully
>> >> >> >> >>> > ,still fails with the ActiveMQ.
>> >> >> >> >>> >
>> >> >> >> >>> > [1] http://activemq.apache.org/amqp.html
>> >> >> >> >>> >
>> >> >> >> >>> > Thanks,
>> >> >> >> >>> > Gayan
>> >> >> >> >>> >
>> >> >> >> >>> >
>> >> >> >> >>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow
>> >> >> >> >>> > <ch...@gmail.com>
>> >> >> >> >>> > wrote:
>> >> >> >> >>> >>
>> >> >> >> >>> >> Is the issue because we currently have a mix of
>> >> >> >> >>> >> JMS/AMQP/Jndi?
>> >> >> >> >>> >> If
>> >> >> >> >>> >> we
>> >> >> >> >>> >> had a
>> >> >> >> >>> >> pure AMQP approach would these problems go away?  AFAIK,
>> >> >> >> >>> >> one
>> >> >> >> >>> >> of
>> >> >> >> >>> >> the
>> >> >> >> >>> >> drivers
>> >> >> >> >>> >> for AMQP was interoperability with all languages, rather
>> >> >> >> >>> >> than
>> >> >> >> >>> >> jms
>> >> >> >> >>> >> which is
>> >> >> >> >>> >> focused on Java.
>> >> >> >> >>> >>
>> >> >> >> >>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne" <ga...@wso2.com>
>> >> >> >> >>> >> wrote:
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> Hi All,
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> With related to the python cartridge agent , Dinesh and
>> >> >> >> >>> >>> myself
>> >> >> >> >>> >>> do
>> >> >> >> >>> >>> some
>> >> >> >> >>> >>> research related to the Apache ActiveMQ connectivity
>> >> >> >> >>> >>> using
>> >> >> >> >>> >>> the
>> >> >> >> >>> >>> python
>> >> >> >> >>> >>> client.
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> Following our findings on this.
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> AMQP
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> AFAWU we need to have  pyactivemq , which is a Python
>> >> >> >> >>> >>> wrapper
>> >> >> >> >>> >>> for
>> >> >> >> >>> >>> the
>> >> >> >> >>> >>> ActiveMQ C++ Library,[1] But we won't be able to use this
>> >> >> >> >>> >>> module
>> >> >> >> >>> >>> as
>> >> >> >> >>> >>> it is
>> >> >> >> >>> >>> platform dependent.
>> >> >> >> >>> >>> Also we checked the following client libraries as
>> >> >> >> >>> >>> well(those
>> >> >> >> >>> >>> are
>> >> >> >> >>> >>> recommended with the RabbitMQ)
>> >> >> >> >>> >>> [3] py-amqplib
>> >> >> >> >>> >>> [4] txAMQP
>> >> >> >> >>> >>> [5] pika
>> >> >> >> >>> >>> [6] Carrot (has copy right licence)
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> But we were unable to connect Apache ActiveMQ with those
>> >> >> >> >>> >>> as
>> >> >> >> >>> >>> well.(Even
>> >> >> >> >>> >>> through we can connect those with the RabbitMQ)
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> STOMP[2]
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> With the STOMP protocol , We were able to connect Apache
>> >> >> >> >>> >>> ActiveMQ
>> >> >> >> >>> >>> by
>> >> >> >> >>> >>> using the stomp module.[7]
>> >> >> >> >>> >>>
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> As a summary,
>> >> >> >> >>> >>> It seems like we need to use STOMP to connect ActiveMQ.
>> >> >> >> >>> >>> But
>> >> >> >> >>> >>> still,
>> >> >> >> >>> >>> WSO2
>> >> >> >> >>> >>> message broker is not supporting STOMP protocol.
>> >> >> >> >>> >>> IMO Shall we used the hybrid model for connect to the
>> >> >> >> >>> >>> message
>> >> >> >> >>> >>> queues.
>> >> >> >> >>> >>> Such that , we can use STOMP to connect the ActiveMQ and
>> >> >> >> >>> >>> AMQP
>> >> >> >> >>> >>> to
>> >> >> >> >>> >>> connect
>> >> >> >> >>> >>> WSO2 MB. WDYT?
>> >> >> >> >>> >>> With txAMQP[4] we were able to connect WSO2 MB using the
>> >> >> >> >>> >>> qpid
>> >> >> >> >>> >>> amqp
>> >> >> >> >>> >>> specifications.
>> >> >> >> >>> >>> Please share your suggestions and thoughts on this.
>> >> >> >> >>> >>>
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> [1] http://activemq.apache.org/python.html
>> >> >> >> >>> >>> [2] http://activemq.apache.org/stomp.html
>> >> >> >> >>> >>> [3] http://barryp.org/software/py-amqplib/
>> >> >> >> >>> >>> [4] https://launchpad.net/txamqp
>> >> >> >> >>> >>> [5] https://github.com/pika/pika
>> >> >> >> >>> >>> [6] https://pypi.python.org/pypi/carrot/
>> >> >> >> >>> >>> [7] https://github.com/jasonrbriggs/stomp.py
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> @Dinesh , Please add If I missed anything here.
>> >> >> >> >>> >>>
>> >> >> >> >>> >>>
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> Thanks,
>> >> >> >> >>> >>> Gayan
>> >> >> >> >>> >>>
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> --
>> >> >> >> >>> >>>
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> Gayan Gunarathne
>> >> >> >> >>> >>> Technical Lead
>> >> >> >> >>> >>> WSO2 Inc. (http://wso2.com)
>> >> >> >> >>> >>> email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >>> >>>
>> >> >> >> >>> >
>> >> >> >> >>> >
>> >> >> >> >>> >
>> >> >> >> >>> >
>> >> >> >> >>> > --
>> >> >> >> >>> > Best Regards,
>> >> >> >> >>> >
>> >> >> >> >>> > Gayan Gunarathne
>> >> >> >> >>> > Technical Lead
>> >> >> >> >>> > WSO2 Inc. (http://wso2.com)
>> >> >> >> >>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >>> >
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> --
>> >> >> >> >> Best Regards,
>> >> >> >> >>
>> >> >> >> >> Gayan Gunarathne
>> >> >> >> >> Technical Lead
>> >> >> >> >> WSO2 Inc. (http://wso2.com)
>> >> >> >> >> email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > --
>> >> >> >> > Best Regards,
>> >> >> >> >
>> >> >> >> > Gayan Gunarathne
>> >> >> >> > Technical Lead
>> >> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > Best Regards,
>> >> >> >
>> >> >> > Gayan Gunarathne
>> >> >> > Technical Lead
>> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Best Regards,
>> >> >
>> >> > Gayan Gunarathne
>> >> > Technical Lead
>> >> > WSO2 Inc. (http://wso2.com)
>> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Akila Ravihansa Perera
>> >> WSO2 Inc
>> >>
>> >> Blog: http://ravihansa3000.blogspot.com
>> >
>> >
>> >
>> >
>> > --
>> > Best Regards,
>> >
>> > Gayan Gunarathne
>> > Technical Lead
>> > WSO2 Inc. (http://wso2.com)
>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >
>
>
>
>
> --
> Best Regards,
>
> Gayan Gunarathne
> Technical Lead
> WSO2 Inc. (http://wso2.com)
> email  : gayang@wso2.com  | mobile : +94 766819985
>

Re: Stratos Python Cartridge Agent

Posted by Gayan Gunarathne <ga...@wso2.com>.
For windows also they have included the building procedure in their read-me
file.

Thanks,
Gayan


On Thu, Aug 28, 2014 at 2:17 PM, Gayan Gunarathne <ga...@wso2.com> wrote:

> Yeah Chris.It is the command set for the fedora as mention in their
> read-me file.
>
> For Ubuntu we can use the following command sets.
>
> # required dependencies
> sudo apt-get install gcc cmake uuid-dev
>
> # dependencies needed for ssl support
> sudo apt-get install libssl-dev
>
> # dependencies needed for bindings
> sudo apt-get install swig python-dev ruby-dev php5-dev libperl-dev
>
> sudo apt-get install oracle-java8-installer
>
> sudo apt-get install python-epydoc
>
> Thanks,
> Gayan
>
>
>
>
>
> On Thu, Aug 28, 2014 at 12:53 PM, chris snow <ch...@gmail.com> wrote:
>
>> On Wed, Aug 27, 2014 at 6:26 AM, Gayan Gunarathne <ga...@wso2.com>
>> wrote:
>> > Hi Akila,
>> >
>> > When we tried with the Apache Qpid Proton-C library we did the following
>> > prerequisites.
>> >
>> >     # required dependencies
>> >     yum install gcc cmake libuuid-devel
>> >
>> >     # dependencies needed for ssl support
>> >     yum install openssl-devel
>> >
>> >     # dependencies needed for bindings
>> >     yum install swig python-devel ruby-devel php-devel perl-devel
>> >
>> >     yum install java-1.8.0-openjdk-devel
>> >
>> >     yum install epydoc
>> >
>> >
>> > After that only we were able to build in the Ubuntu and run the python
>> > client with proton support.I guess for every platform we need to do the
>> same
>> > and have to maintain different settings for different platform.WDYT?
>> >
>> Did you mean to say Ubuntu here? The commands above aren't for Ubuntu.
>> >
>> > When it comes to the large number of instance, we need to do load
>> testing
>> > with the STOMP protocol.Thanks for pointing out this.
>> >
>> >
>> >
>> > Thanks,
>> >
>> > Gayan
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Wed, Aug 27, 2014 at 10:33 AM, Akila Ravihansa Perera
>> > <ra...@wso2.com> wrote:
>> >>
>> >> Hi Gayan,
>> >>
>> >> What are the concerns/blockers for using Apache Qpid Proton-C library
>> >> [1] with Python binding?
>> >>
>> >> As I understood, this is cross-platform compatible (Linux/Windows) and
>> >> you do not need Java. However, there is a pure Java implementation but
>> >> we can use C/Python binding. We will have to investigate this further
>> >> though.
>> >>
>> >> Have we made an analysis of using STOMP vs AMQP as the communication
>> >> protocol with MB for cartridge agent? We might have to consider this
>> >> because with the upcoming Docker support there can be about 1000+
>> >> instances communicating with the MB.
>> >>
>> >> [1] https://github.com/apache/qpid-proton
>> >>
>> >> On Tue, Aug 26, 2014 at 4:28 PM, Gayan Gunarathne <ga...@wso2.com>
>> wrote:
>> >> > Hi Chris,
>> >> >
>> >> > Thanks for adding the JIRA for ActiveMQ. Yeah It will be a worth
>> >> > addition.
>> >> >
>> >> >
>> >> > Thanks,
>> >> > Gayan
>> >> >
>> >> >
>> >> > On Tue, Aug 26, 2014 at 4:14 PM, chris snow <ch...@gmail.com>
>> wrote:
>> >> >>
>> >> >> I guess the agent will need to be configurable to support STOMP for
>> >> >> ActiveMQ installations or AMQP for WSO2MB installations.
>> >> >>
>> >> >> Also, I raised this JIRA:
>> >> >> https://issues.apache.org/jira/browse/AMQ-5332 - it won't happen in
>> >> >> our timescales, but I thought it was worth adding as it seems a lot
>> of
>> >> >> people hit issues with ActiveMQ only supporting AMQP 1.0.
>> >> >>
>> >> >>
>> >> >> On Tue, Aug 26, 2014 at 8:22 AM, Gayan Gunarathne <ga...@wso2.com>
>> >> >> wrote:
>> >> >> > Yeah Chris.
>> >> >> >
>> >> >> > Exactly the problem we have.Currently lot of python amqp agents
>> for
>> >> >> > RabbitMQ
>> >> >> > which supports AMQP 0-9.[1].
>> >> >> >
>> >> >> > [1] https://www.rabbitmq.com/specification.html
>> >> >> >
>> >> >> > Thanks,
>> >> >> > Gayan
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > On Tue, Aug 26, 2014 at 12:25 PM, chris snow <chsnow123@gmail.com
>> >
>> >> >> > wrote:
>> >> >> >>
>> >> >> >> Thanks Gayan!
>> >> >> >>
>> >> >> >> What errors were you hitting?  The few clients I tried give me
>> the
>> >> >> >> error
>> >> >> >> [1].
>> >> >> >>
>> >> >> >> It seems some of f the python amqp libraries don't support
>> version
>> >> >> >> 1.0
>> >> >> >> of
>> >> >> >> AMQP?
>> >> >> >>
>> >> >> >> ---
>> >> >> >> [1]
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html
>> >> >> >>
>> >> >> >> On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne <
>> gayang@wso2.com>
>> >> >> >> wrote:
>> >> >> >> > Hi Chirs,
>> >> >> >> >
>> >> >> >> > Please find the python client library samples which we are
>> tested.
>> >> >> >> > https://github.com/gayangunarathne/amqp_python_libraries
>> >> >> >> >
>> >> >> >> > Thanks,
>> >> >> >> > Gayan
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne
>> >> >> >> > <ga...@wso2.com>
>> >> >> >> > wrote:
>> >> >> >> >>
>> >> >> >> >> Hi Chris,
>> >> >> >> >>
>> >> >> >> >> Yeah. We looked that qpid messaging as well.For that we need
>> that
>> >> >> >> >> qpid
>> >> >> >> >> proton library .Is n't?
>> >> >> >> >> AFAIR it is based on CMake and It requires java also[1].
>> >> >> >> >>
>> >> >> >> >> Also we will share with you the samples we try with the amqp
>> >> >> >> >> clients.
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> [1]http://svn.apache.org/repos/asf/qpid/proton/trunk/README
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> Thanks,
>> >> >> >> >> Gayan
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> On Mon, Aug 25, 2014 at 7:33 PM, chris snow <
>> chsnow123@gmail.com>
>> >> >> >> >> wrote:
>> >> >> >> >>>
>> >> >> >> >>> hi Gayan,
>> >> >> >> >>>
>> >> >> >> >>> What are the issues that you received from the various AMQP
>> >> >> >> >>> libraries?
>> >> >> >> >>> Do you have a code repo that I can take a look at to try and
>> >> >> >> >>> replicate
>> >> >> >> >>> the errors?
>> >> >> >> >>> Did you investigate qpid [1]?
>> >> >> >> >>>
>> >> >> >> >>> Many thanks
>> >> >> >> >>>
>> >> >> >> >>> Chris
>> >> >> >> >>>
>> >> >> >> >>> ---
>> >> >> >> >>> [1]
>> >> >> >> >>>
>> >> >> >> >>>
>> >> >> >> >>>
>> >> >> >> >>>
>> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
>> >> >> >> >>>
>> >> >> >> >>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne
>> >> >> >> >>> <ga...@wso2.com>
>> >> >> >> >>> wrote:
>> >> >> >> >>> > Hi Chris,
>> >> >> >> >>> >
>> >> >> >> >>> > We try to replace our java cartridge agent with the python
>> as
>> >> >> >> >>> > after
>> >> >> >> >>> > that we
>> >> >> >> >>> > can remove the java dependency from the cartridge itself.I
>> >> >> >> >>> > guess
>> >> >> >> >>> > this
>> >> >> >> >>> > is
>> >> >> >> >>> > also vital for the Docker support too.
>> >> >> >> >>> >
>> >> >> >> >>> > In Apache ActiveMQ site also AMQP support is based on the
>> >> >> >> >>> > JMS/AMQP[1].
>> >> >> >> >>> > I
>> >> >> >> >>> > guess message broker implementation will be different from
>> one
>> >> >> >> >>> > MQ
>> >> >> >> >>> > to
>> >> >> >> >>> > other
>> >> >> >> >>> > as some python client which able to connect with RabbitMQ
>> >> >> >> >>> > successfully
>> >> >> >> >>> > ,still fails with the ActiveMQ.
>> >> >> >> >>> >
>> >> >> >> >>> > [1] http://activemq.apache.org/amqp.html
>> >> >> >> >>> >
>> >> >> >> >>> > Thanks,
>> >> >> >> >>> > Gayan
>> >> >> >> >>> >
>> >> >> >> >>> >
>> >> >> >> >>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow
>> >> >> >> >>> > <ch...@gmail.com>
>> >> >> >> >>> > wrote:
>> >> >> >> >>> >>
>> >> >> >> >>> >> Is the issue because we currently have a mix of
>> >> >> >> >>> >> JMS/AMQP/Jndi?
>> >> >> >> >>> >> If
>> >> >> >> >>> >> we
>> >> >> >> >>> >> had a
>> >> >> >> >>> >> pure AMQP approach would these problems go away?  AFAIK,
>> one
>> >> >> >> >>> >> of
>> >> >> >> >>> >> the
>> >> >> >> >>> >> drivers
>> >> >> >> >>> >> for AMQP was interoperability with all languages, rather
>> than
>> >> >> >> >>> >> jms
>> >> >> >> >>> >> which is
>> >> >> >> >>> >> focused on Java.
>> >> >> >> >>> >>
>> >> >> >> >>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne" <gayang@wso2.com
>> >
>> >> >> >> >>> >> wrote:
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> Hi All,
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> With related to the python cartridge agent , Dinesh and
>> >> >> >> >>> >>> myself
>> >> >> >> >>> >>> do
>> >> >> >> >>> >>> some
>> >> >> >> >>> >>> research related to the Apache ActiveMQ connectivity
>> using
>> >> >> >> >>> >>> the
>> >> >> >> >>> >>> python
>> >> >> >> >>> >>> client.
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> Following our findings on this.
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> AMQP
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> AFAWU we need to have  pyactivemq , which is a Python
>> >> >> >> >>> >>> wrapper
>> >> >> >> >>> >>> for
>> >> >> >> >>> >>> the
>> >> >> >> >>> >>> ActiveMQ C++ Library,[1] But we won't be able to use this
>> >> >> >> >>> >>> module
>> >> >> >> >>> >>> as
>> >> >> >> >>> >>> it is
>> >> >> >> >>> >>> platform dependent.
>> >> >> >> >>> >>> Also we checked the following client libraries as
>> well(those
>> >> >> >> >>> >>> are
>> >> >> >> >>> >>> recommended with the RabbitMQ)
>> >> >> >> >>> >>> [3] py-amqplib
>> >> >> >> >>> >>> [4] txAMQP
>> >> >> >> >>> >>> [5] pika
>> >> >> >> >>> >>> [6] Carrot (has copy right licence)
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> But we were unable to connect Apache ActiveMQ with those
>> as
>> >> >> >> >>> >>> well.(Even
>> >> >> >> >>> >>> through we can connect those with the RabbitMQ)
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> STOMP[2]
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> With the STOMP protocol , We were able to connect Apache
>> >> >> >> >>> >>> ActiveMQ
>> >> >> >> >>> >>> by
>> >> >> >> >>> >>> using the stomp module.[7]
>> >> >> >> >>> >>>
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> As a summary,
>> >> >> >> >>> >>> It seems like we need to use STOMP to connect ActiveMQ.
>> But
>> >> >> >> >>> >>> still,
>> >> >> >> >>> >>> WSO2
>> >> >> >> >>> >>> message broker is not supporting STOMP protocol.
>> >> >> >> >>> >>> IMO Shall we used the hybrid model for connect to the
>> >> >> >> >>> >>> message
>> >> >> >> >>> >>> queues.
>> >> >> >> >>> >>> Such that , we can use STOMP to connect the ActiveMQ and
>> >> >> >> >>> >>> AMQP
>> >> >> >> >>> >>> to
>> >> >> >> >>> >>> connect
>> >> >> >> >>> >>> WSO2 MB. WDYT?
>> >> >> >> >>> >>> With txAMQP[4] we were able to connect WSO2 MB using the
>> >> >> >> >>> >>> qpid
>> >> >> >> >>> >>> amqp
>> >> >> >> >>> >>> specifications.
>> >> >> >> >>> >>> Please share your suggestions and thoughts on this.
>> >> >> >> >>> >>>
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> [1] http://activemq.apache.org/python.html
>> >> >> >> >>> >>> [2] http://activemq.apache.org/stomp.html
>> >> >> >> >>> >>> [3] http://barryp.org/software/py-amqplib/
>> >> >> >> >>> >>> [4] https://launchpad.net/txamqp
>> >> >> >> >>> >>> [5] https://github.com/pika/pika
>> >> >> >> >>> >>> [6] https://pypi.python.org/pypi/carrot/
>> >> >> >> >>> >>> [7] https://github.com/jasonrbriggs/stomp.py
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> @Dinesh , Please add If I missed anything here.
>> >> >> >> >>> >>>
>> >> >> >> >>> >>>
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> Thanks,
>> >> >> >> >>> >>> Gayan
>> >> >> >> >>> >>>
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> --
>> >> >> >> >>> >>>
>> >> >> >> >>> >>>
>> >> >> >> >>> >>> Gayan Gunarathne
>> >> >> >> >>> >>> Technical Lead
>> >> >> >> >>> >>> WSO2 Inc. (http://wso2.com)
>> >> >> >> >>> >>> email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >>> >>>
>> >> >> >> >>> >
>> >> >> >> >>> >
>> >> >> >> >>> >
>> >> >> >> >>> >
>> >> >> >> >>> > --
>> >> >> >> >>> > Best Regards,
>> >> >> >> >>> >
>> >> >> >> >>> > Gayan Gunarathne
>> >> >> >> >>> > Technical Lead
>> >> >> >> >>> > WSO2 Inc. (http://wso2.com)
>> >> >> >> >>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >>> >
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> --
>> >> >> >> >> Best Regards,
>> >> >> >> >>
>> >> >> >> >> Gayan Gunarathne
>> >> >> >> >> Technical Lead
>> >> >> >> >> WSO2 Inc. (http://wso2.com)
>> >> >> >> >> email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > --
>> >> >> >> > Best Regards,
>> >> >> >> >
>> >> >> >> > Gayan Gunarathne
>> >> >> >> > Technical Lead
>> >> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > Best Regards,
>> >> >> >
>> >> >> > Gayan Gunarathne
>> >> >> > Technical Lead
>> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Best Regards,
>> >> >
>> >> > Gayan Gunarathne
>> >> > Technical Lead
>> >> > WSO2 Inc. (http://wso2.com)
>> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Akila Ravihansa Perera
>> >> WSO2 Inc
>> >>
>> >> Blog: http://ravihansa3000.blogspot.com
>> >
>> >
>> >
>> >
>> > --
>> > Best Regards,
>> >
>> > Gayan Gunarathne
>> > Technical Lead
>> > WSO2 Inc. (http://wso2.com)
>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >
>>
>
>
>
> --
> Best Regards,
>
> Gayan Gunarathne
> Technical Lead
> WSO2 Inc. (http://wso2.com)
> email  : gayang@wso2.com  | mobile : +94 766819985
>
>



-- 
Best Regards,

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gayang@wso2.com  | mobile : +94 766819985

Re: Stratos Python Cartridge Agent

Posted by Gayan Gunarathne <ga...@wso2.com>.
Yeah Chris.It is the command set for the fedora as mention in their read-me
file.

For Ubuntu we can use the following command sets.

# required dependencies
sudo apt-get install gcc cmake uuid-dev

# dependencies needed for ssl support
sudo apt-get install libssl-dev

# dependencies needed for bindings
sudo apt-get install swig python-dev ruby-dev php5-dev libperl-dev

sudo apt-get install oracle-java8-installer

sudo apt-get install python-epydoc

Thanks,
Gayan





On Thu, Aug 28, 2014 at 12:53 PM, chris snow <ch...@gmail.com> wrote:

> On Wed, Aug 27, 2014 at 6:26 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
> > Hi Akila,
> >
> > When we tried with the Apache Qpid Proton-C library we did the following
> > prerequisites.
> >
> >     # required dependencies
> >     yum install gcc cmake libuuid-devel
> >
> >     # dependencies needed for ssl support
> >     yum install openssl-devel
> >
> >     # dependencies needed for bindings
> >     yum install swig python-devel ruby-devel php-devel perl-devel
> >
> >     yum install java-1.8.0-openjdk-devel
> >
> >     yum install epydoc
> >
> >
> > After that only we were able to build in the Ubuntu and run the python
> > client with proton support.I guess for every platform we need to do the
> same
> > and have to maintain different settings for different platform.WDYT?
> >
> Did you mean to say Ubuntu here? The commands above aren't for Ubuntu.
> >
> > When it comes to the large number of instance, we need to do load testing
> > with the STOMP protocol.Thanks for pointing out this.
> >
> >
> >
> > Thanks,
> >
> > Gayan
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Wed, Aug 27, 2014 at 10:33 AM, Akila Ravihansa Perera
> > <ra...@wso2.com> wrote:
> >>
> >> Hi Gayan,
> >>
> >> What are the concerns/blockers for using Apache Qpid Proton-C library
> >> [1] with Python binding?
> >>
> >> As I understood, this is cross-platform compatible (Linux/Windows) and
> >> you do not need Java. However, there is a pure Java implementation but
> >> we can use C/Python binding. We will have to investigate this further
> >> though.
> >>
> >> Have we made an analysis of using STOMP vs AMQP as the communication
> >> protocol with MB for cartridge agent? We might have to consider this
> >> because with the upcoming Docker support there can be about 1000+
> >> instances communicating with the MB.
> >>
> >> [1] https://github.com/apache/qpid-proton
> >>
> >> On Tue, Aug 26, 2014 at 4:28 PM, Gayan Gunarathne <ga...@wso2.com>
> wrote:
> >> > Hi Chris,
> >> >
> >> > Thanks for adding the JIRA for ActiveMQ. Yeah It will be a worth
> >> > addition.
> >> >
> >> >
> >> > Thanks,
> >> > Gayan
> >> >
> >> >
> >> > On Tue, Aug 26, 2014 at 4:14 PM, chris snow <ch...@gmail.com>
> wrote:
> >> >>
> >> >> I guess the agent will need to be configurable to support STOMP for
> >> >> ActiveMQ installations or AMQP for WSO2MB installations.
> >> >>
> >> >> Also, I raised this JIRA:
> >> >> https://issues.apache.org/jira/browse/AMQ-5332 - it won't happen in
> >> >> our timescales, but I thought it was worth adding as it seems a lot
> of
> >> >> people hit issues with ActiveMQ only supporting AMQP 1.0.
> >> >>
> >> >>
> >> >> On Tue, Aug 26, 2014 at 8:22 AM, Gayan Gunarathne <ga...@wso2.com>
> >> >> wrote:
> >> >> > Yeah Chris.
> >> >> >
> >> >> > Exactly the problem we have.Currently lot of python amqp agents for
> >> >> > RabbitMQ
> >> >> > which supports AMQP 0-9.[1].
> >> >> >
> >> >> > [1] https://www.rabbitmq.com/specification.html
> >> >> >
> >> >> > Thanks,
> >> >> > Gayan
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > On Tue, Aug 26, 2014 at 12:25 PM, chris snow <ch...@gmail.com>
> >> >> > wrote:
> >> >> >>
> >> >> >> Thanks Gayan!
> >> >> >>
> >> >> >> What errors were you hitting?  The few clients I tried give me the
> >> >> >> error
> >> >> >> [1].
> >> >> >>
> >> >> >> It seems some of f the python amqp libraries don't support version
> >> >> >> 1.0
> >> >> >> of
> >> >> >> AMQP?
> >> >> >>
> >> >> >> ---
> >> >> >> [1]
> >> >> >>
> >> >> >>
> >> >> >>
> http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html
> >> >> >>
> >> >> >> On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne <
> gayang@wso2.com>
> >> >> >> wrote:
> >> >> >> > Hi Chirs,
> >> >> >> >
> >> >> >> > Please find the python client library samples which we are
> tested.
> >> >> >> > https://github.com/gayangunarathne/amqp_python_libraries
> >> >> >> >
> >> >> >> > Thanks,
> >> >> >> > Gayan
> >> >> >> >
> >> >> >> >
> >> >> >> > On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne
> >> >> >> > <ga...@wso2.com>
> >> >> >> > wrote:
> >> >> >> >>
> >> >> >> >> Hi Chris,
> >> >> >> >>
> >> >> >> >> Yeah. We looked that qpid messaging as well.For that we need
> that
> >> >> >> >> qpid
> >> >> >> >> proton library .Is n't?
> >> >> >> >> AFAIR it is based on CMake and It requires java also[1].
> >> >> >> >>
> >> >> >> >> Also we will share with you the samples we try with the amqp
> >> >> >> >> clients.
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> [1]http://svn.apache.org/repos/asf/qpid/proton/trunk/README
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> Thanks,
> >> >> >> >> Gayan
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> On Mon, Aug 25, 2014 at 7:33 PM, chris snow <
> chsnow123@gmail.com>
> >> >> >> >> wrote:
> >> >> >> >>>
> >> >> >> >>> hi Gayan,
> >> >> >> >>>
> >> >> >> >>> What are the issues that you received from the various AMQP
> >> >> >> >>> libraries?
> >> >> >> >>> Do you have a code repo that I can take a look at to try and
> >> >> >> >>> replicate
> >> >> >> >>> the errors?
> >> >> >> >>> Did you investigate qpid [1]?
> >> >> >> >>>
> >> >> >> >>> Many thanks
> >> >> >> >>>
> >> >> >> >>> Chris
> >> >> >> >>>
> >> >> >> >>> ---
> >> >> >> >>> [1]
> >> >> >> >>>
> >> >> >> >>>
> >> >> >> >>>
> >> >> >> >>>
> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
> >> >> >> >>>
> >> >> >> >>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne
> >> >> >> >>> <ga...@wso2.com>
> >> >> >> >>> wrote:
> >> >> >> >>> > Hi Chris,
> >> >> >> >>> >
> >> >> >> >>> > We try to replace our java cartridge agent with the python
> as
> >> >> >> >>> > after
> >> >> >> >>> > that we
> >> >> >> >>> > can remove the java dependency from the cartridge itself.I
> >> >> >> >>> > guess
> >> >> >> >>> > this
> >> >> >> >>> > is
> >> >> >> >>> > also vital for the Docker support too.
> >> >> >> >>> >
> >> >> >> >>> > In Apache ActiveMQ site also AMQP support is based on the
> >> >> >> >>> > JMS/AMQP[1].
> >> >> >> >>> > I
> >> >> >> >>> > guess message broker implementation will be different from
> one
> >> >> >> >>> > MQ
> >> >> >> >>> > to
> >> >> >> >>> > other
> >> >> >> >>> > as some python client which able to connect with RabbitMQ
> >> >> >> >>> > successfully
> >> >> >> >>> > ,still fails with the ActiveMQ.
> >> >> >> >>> >
> >> >> >> >>> > [1] http://activemq.apache.org/amqp.html
> >> >> >> >>> >
> >> >> >> >>> > Thanks,
> >> >> >> >>> > Gayan
> >> >> >> >>> >
> >> >> >> >>> >
> >> >> >> >>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow
> >> >> >> >>> > <ch...@gmail.com>
> >> >> >> >>> > wrote:
> >> >> >> >>> >>
> >> >> >> >>> >> Is the issue because we currently have a mix of
> >> >> >> >>> >> JMS/AMQP/Jndi?
> >> >> >> >>> >> If
> >> >> >> >>> >> we
> >> >> >> >>> >> had a
> >> >> >> >>> >> pure AMQP approach would these problems go away?  AFAIK,
> one
> >> >> >> >>> >> of
> >> >> >> >>> >> the
> >> >> >> >>> >> drivers
> >> >> >> >>> >> for AMQP was interoperability with all languages, rather
> than
> >> >> >> >>> >> jms
> >> >> >> >>> >> which is
> >> >> >> >>> >> focused on Java.
> >> >> >> >>> >>
> >> >> >> >>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne" <ga...@wso2.com>
> >> >> >> >>> >> wrote:
> >> >> >> >>> >>>
> >> >> >> >>> >>> Hi All,
> >> >> >> >>> >>>
> >> >> >> >>> >>> With related to the python cartridge agent , Dinesh and
> >> >> >> >>> >>> myself
> >> >> >> >>> >>> do
> >> >> >> >>> >>> some
> >> >> >> >>> >>> research related to the Apache ActiveMQ connectivity using
> >> >> >> >>> >>> the
> >> >> >> >>> >>> python
> >> >> >> >>> >>> client.
> >> >> >> >>> >>>
> >> >> >> >>> >>> Following our findings on this.
> >> >> >> >>> >>>
> >> >> >> >>> >>> AMQP
> >> >> >> >>> >>>
> >> >> >> >>> >>> AFAWU we need to have  pyactivemq , which is a Python
> >> >> >> >>> >>> wrapper
> >> >> >> >>> >>> for
> >> >> >> >>> >>> the
> >> >> >> >>> >>> ActiveMQ C++ Library,[1] But we won't be able to use this
> >> >> >> >>> >>> module
> >> >> >> >>> >>> as
> >> >> >> >>> >>> it is
> >> >> >> >>> >>> platform dependent.
> >> >> >> >>> >>> Also we checked the following client libraries as
> well(those
> >> >> >> >>> >>> are
> >> >> >> >>> >>> recommended with the RabbitMQ)
> >> >> >> >>> >>> [3] py-amqplib
> >> >> >> >>> >>> [4] txAMQP
> >> >> >> >>> >>> [5] pika
> >> >> >> >>> >>> [6] Carrot (has copy right licence)
> >> >> >> >>> >>>
> >> >> >> >>> >>> But we were unable to connect Apache ActiveMQ with those
> as
> >> >> >> >>> >>> well.(Even
> >> >> >> >>> >>> through we can connect those with the RabbitMQ)
> >> >> >> >>> >>>
> >> >> >> >>> >>> STOMP[2]
> >> >> >> >>> >>>
> >> >> >> >>> >>> With the STOMP protocol , We were able to connect Apache
> >> >> >> >>> >>> ActiveMQ
> >> >> >> >>> >>> by
> >> >> >> >>> >>> using the stomp module.[7]
> >> >> >> >>> >>>
> >> >> >> >>> >>>
> >> >> >> >>> >>> As a summary,
> >> >> >> >>> >>> It seems like we need to use STOMP to connect ActiveMQ.
> But
> >> >> >> >>> >>> still,
> >> >> >> >>> >>> WSO2
> >> >> >> >>> >>> message broker is not supporting STOMP protocol.
> >> >> >> >>> >>> IMO Shall we used the hybrid model for connect to the
> >> >> >> >>> >>> message
> >> >> >> >>> >>> queues.
> >> >> >> >>> >>> Such that , we can use STOMP to connect the ActiveMQ and
> >> >> >> >>> >>> AMQP
> >> >> >> >>> >>> to
> >> >> >> >>> >>> connect
> >> >> >> >>> >>> WSO2 MB. WDYT?
> >> >> >> >>> >>> With txAMQP[4] we were able to connect WSO2 MB using the
> >> >> >> >>> >>> qpid
> >> >> >> >>> >>> amqp
> >> >> >> >>> >>> specifications.
> >> >> >> >>> >>> Please share your suggestions and thoughts on this.
> >> >> >> >>> >>>
> >> >> >> >>> >>>
> >> >> >> >>> >>> [1] http://activemq.apache.org/python.html
> >> >> >> >>> >>> [2] http://activemq.apache.org/stomp.html
> >> >> >> >>> >>> [3] http://barryp.org/software/py-amqplib/
> >> >> >> >>> >>> [4] https://launchpad.net/txamqp
> >> >> >> >>> >>> [5] https://github.com/pika/pika
> >> >> >> >>> >>> [6] https://pypi.python.org/pypi/carrot/
> >> >> >> >>> >>> [7] https://github.com/jasonrbriggs/stomp.py
> >> >> >> >>> >>>
> >> >> >> >>> >>> @Dinesh , Please add If I missed anything here.
> >> >> >> >>> >>>
> >> >> >> >>> >>>
> >> >> >> >>> >>>
> >> >> >> >>> >>> Thanks,
> >> >> >> >>> >>> Gayan
> >> >> >> >>> >>>
> >> >> >> >>> >>>
> >> >> >> >>> >>> --
> >> >> >> >>> >>>
> >> >> >> >>> >>>
> >> >> >> >>> >>> Gayan Gunarathne
> >> >> >> >>> >>> Technical Lead
> >> >> >> >>> >>> WSO2 Inc. (http://wso2.com)
> >> >> >> >>> >>> email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >>> >>>
> >> >> >> >>> >
> >> >> >> >>> >
> >> >> >> >>> >
> >> >> >> >>> >
> >> >> >> >>> > --
> >> >> >> >>> > Best Regards,
> >> >> >> >>> >
> >> >> >> >>> > Gayan Gunarathne
> >> >> >> >>> > Technical Lead
> >> >> >> >>> > WSO2 Inc. (http://wso2.com)
> >> >> >> >>> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >>> >
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >> Best Regards,
> >> >> >> >>
> >> >> >> >> Gayan Gunarathne
> >> >> >> >> Technical Lead
> >> >> >> >> WSO2 Inc. (http://wso2.com)
> >> >> >> >> email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > --
> >> >> >> > Best Regards,
> >> >> >> >
> >> >> >> > Gayan Gunarathne
> >> >> >> > Technical Lead
> >> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Best Regards,
> >> >> >
> >> >> > Gayan Gunarathne
> >> >> > Technical Lead
> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Best Regards,
> >> >
> >> > Gayan Gunarathne
> >> > Technical Lead
> >> > WSO2 Inc. (http://wso2.com)
> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >
> >>
> >>
> >>
> >> --
> >> Akila Ravihansa Perera
> >> WSO2 Inc
> >>
> >> Blog: http://ravihansa3000.blogspot.com
> >
> >
> >
> >
> > --
> > Best Regards,
> >
> > Gayan Gunarathne
> > Technical Lead
> > WSO2 Inc. (http://wso2.com)
> > email  : gayang@wso2.com  | mobile : +94 766819985
> >
>



-- 
Best Regards,

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gayang@wso2.com  | mobile : +94 766819985

Re: Stratos Python Cartridge Agent

Posted by chris snow <ch...@gmail.com>.
On Wed, Aug 27, 2014 at 6:26 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
> Hi Akila,
>
> When we tried with the Apache Qpid Proton-C library we did the following
> prerequisites.
>
>     # required dependencies
>     yum install gcc cmake libuuid-devel
>
>     # dependencies needed for ssl support
>     yum install openssl-devel
>
>     # dependencies needed for bindings
>     yum install swig python-devel ruby-devel php-devel perl-devel
>
>     yum install java-1.8.0-openjdk-devel
>
>     yum install epydoc
>
>
> After that only we were able to build in the Ubuntu and run the python
> client with proton support.I guess for every platform we need to do the same
> and have to maintain different settings for different platform.WDYT?
>
Did you mean to say Ubuntu here? The commands above aren't for Ubuntu.
>
> When it comes to the large number of instance, we need to do load testing
> with the STOMP protocol.Thanks for pointing out this.
>
>
>
> Thanks,
>
> Gayan
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> On Wed, Aug 27, 2014 at 10:33 AM, Akila Ravihansa Perera
> <ra...@wso2.com> wrote:
>>
>> Hi Gayan,
>>
>> What are the concerns/blockers for using Apache Qpid Proton-C library
>> [1] with Python binding?
>>
>> As I understood, this is cross-platform compatible (Linux/Windows) and
>> you do not need Java. However, there is a pure Java implementation but
>> we can use C/Python binding. We will have to investigate this further
>> though.
>>
>> Have we made an analysis of using STOMP vs AMQP as the communication
>> protocol with MB for cartridge agent? We might have to consider this
>> because with the upcoming Docker support there can be about 1000+
>> instances communicating with the MB.
>>
>> [1] https://github.com/apache/qpid-proton
>>
>> On Tue, Aug 26, 2014 at 4:28 PM, Gayan Gunarathne <ga...@wso2.com> wrote:
>> > Hi Chris,
>> >
>> > Thanks for adding the JIRA for ActiveMQ. Yeah It will be a worth
>> > addition.
>> >
>> >
>> > Thanks,
>> > Gayan
>> >
>> >
>> > On Tue, Aug 26, 2014 at 4:14 PM, chris snow <ch...@gmail.com> wrote:
>> >>
>> >> I guess the agent will need to be configurable to support STOMP for
>> >> ActiveMQ installations or AMQP for WSO2MB installations.
>> >>
>> >> Also, I raised this JIRA:
>> >> https://issues.apache.org/jira/browse/AMQ-5332 - it won't happen in
>> >> our timescales, but I thought it was worth adding as it seems a lot of
>> >> people hit issues with ActiveMQ only supporting AMQP 1.0.
>> >>
>> >>
>> >> On Tue, Aug 26, 2014 at 8:22 AM, Gayan Gunarathne <ga...@wso2.com>
>> >> wrote:
>> >> > Yeah Chris.
>> >> >
>> >> > Exactly the problem we have.Currently lot of python amqp agents for
>> >> > RabbitMQ
>> >> > which supports AMQP 0-9.[1].
>> >> >
>> >> > [1] https://www.rabbitmq.com/specification.html
>> >> >
>> >> > Thanks,
>> >> > Gayan
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > On Tue, Aug 26, 2014 at 12:25 PM, chris snow <ch...@gmail.com>
>> >> > wrote:
>> >> >>
>> >> >> Thanks Gayan!
>> >> >>
>> >> >> What errors were you hitting?  The few clients I tried give me the
>> >> >> error
>> >> >> [1].
>> >> >>
>> >> >> It seems some of f the python amqp libraries don't support version
>> >> >> 1.0
>> >> >> of
>> >> >> AMQP?
>> >> >>
>> >> >> ---
>> >> >> [1]
>> >> >>
>> >> >>
>> >> >> http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html
>> >> >>
>> >> >> On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne <ga...@wso2.com>
>> >> >> wrote:
>> >> >> > Hi Chirs,
>> >> >> >
>> >> >> > Please find the python client library samples which we are tested.
>> >> >> > https://github.com/gayangunarathne/amqp_python_libraries
>> >> >> >
>> >> >> > Thanks,
>> >> >> > Gayan
>> >> >> >
>> >> >> >
>> >> >> > On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne
>> >> >> > <ga...@wso2.com>
>> >> >> > wrote:
>> >> >> >>
>> >> >> >> Hi Chris,
>> >> >> >>
>> >> >> >> Yeah. We looked that qpid messaging as well.For that we need that
>> >> >> >> qpid
>> >> >> >> proton library .Is n't?
>> >> >> >> AFAIR it is based on CMake and It requires java also[1].
>> >> >> >>
>> >> >> >> Also we will share with you the samples we try with the amqp
>> >> >> >> clients.
>> >> >> >>
>> >> >> >>
>> >> >> >> [1]http://svn.apache.org/repos/asf/qpid/proton/trunk/README
>> >> >> >>
>> >> >> >>
>> >> >> >> Thanks,
>> >> >> >> Gayan
>> >> >> >>
>> >> >> >>
>> >> >> >> On Mon, Aug 25, 2014 at 7:33 PM, chris snow <ch...@gmail.com>
>> >> >> >> wrote:
>> >> >> >>>
>> >> >> >>> hi Gayan,
>> >> >> >>>
>> >> >> >>> What are the issues that you received from the various AMQP
>> >> >> >>> libraries?
>> >> >> >>> Do you have a code repo that I can take a look at to try and
>> >> >> >>> replicate
>> >> >> >>> the errors?
>> >> >> >>> Did you investigate qpid [1]?
>> >> >> >>>
>> >> >> >>> Many thanks
>> >> >> >>>
>> >> >> >>> Chris
>> >> >> >>>
>> >> >> >>> ---
>> >> >> >>> [1]
>> >> >> >>>
>> >> >> >>>
>> >> >> >>>
>> >> >> >>> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
>> >> >> >>>
>> >> >> >>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne
>> >> >> >>> <ga...@wso2.com>
>> >> >> >>> wrote:
>> >> >> >>> > Hi Chris,
>> >> >> >>> >
>> >> >> >>> > We try to replace our java cartridge agent with the python as
>> >> >> >>> > after
>> >> >> >>> > that we
>> >> >> >>> > can remove the java dependency from the cartridge itself.I
>> >> >> >>> > guess
>> >> >> >>> > this
>> >> >> >>> > is
>> >> >> >>> > also vital for the Docker support too.
>> >> >> >>> >
>> >> >> >>> > In Apache ActiveMQ site also AMQP support is based on the
>> >> >> >>> > JMS/AMQP[1].
>> >> >> >>> > I
>> >> >> >>> > guess message broker implementation will be different from one
>> >> >> >>> > MQ
>> >> >> >>> > to
>> >> >> >>> > other
>> >> >> >>> > as some python client which able to connect with RabbitMQ
>> >> >> >>> > successfully
>> >> >> >>> > ,still fails with the ActiveMQ.
>> >> >> >>> >
>> >> >> >>> > [1] http://activemq.apache.org/amqp.html
>> >> >> >>> >
>> >> >> >>> > Thanks,
>> >> >> >>> > Gayan
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow
>> >> >> >>> > <ch...@gmail.com>
>> >> >> >>> > wrote:
>> >> >> >>> >>
>> >> >> >>> >> Is the issue because we currently have a mix of
>> >> >> >>> >> JMS/AMQP/Jndi?
>> >> >> >>> >> If
>> >> >> >>> >> we
>> >> >> >>> >> had a
>> >> >> >>> >> pure AMQP approach would these problems go away?  AFAIK, one
>> >> >> >>> >> of
>> >> >> >>> >> the
>> >> >> >>> >> drivers
>> >> >> >>> >> for AMQP was interoperability with all languages, rather than
>> >> >> >>> >> jms
>> >> >> >>> >> which is
>> >> >> >>> >> focused on Java.
>> >> >> >>> >>
>> >> >> >>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne" <ga...@wso2.com>
>> >> >> >>> >> wrote:
>> >> >> >>> >>>
>> >> >> >>> >>> Hi All,
>> >> >> >>> >>>
>> >> >> >>> >>> With related to the python cartridge agent , Dinesh and
>> >> >> >>> >>> myself
>> >> >> >>> >>> do
>> >> >> >>> >>> some
>> >> >> >>> >>> research related to the Apache ActiveMQ connectivity using
>> >> >> >>> >>> the
>> >> >> >>> >>> python
>> >> >> >>> >>> client.
>> >> >> >>> >>>
>> >> >> >>> >>> Following our findings on this.
>> >> >> >>> >>>
>> >> >> >>> >>> AMQP
>> >> >> >>> >>>
>> >> >> >>> >>> AFAWU we need to have  pyactivemq , which is a Python
>> >> >> >>> >>> wrapper
>> >> >> >>> >>> for
>> >> >> >>> >>> the
>> >> >> >>> >>> ActiveMQ C++ Library,[1] But we won't be able to use this
>> >> >> >>> >>> module
>> >> >> >>> >>> as
>> >> >> >>> >>> it is
>> >> >> >>> >>> platform dependent.
>> >> >> >>> >>> Also we checked the following client libraries as well(those
>> >> >> >>> >>> are
>> >> >> >>> >>> recommended with the RabbitMQ)
>> >> >> >>> >>> [3] py-amqplib
>> >> >> >>> >>> [4] txAMQP
>> >> >> >>> >>> [5] pika
>> >> >> >>> >>> [6] Carrot (has copy right licence)
>> >> >> >>> >>>
>> >> >> >>> >>> But we were unable to connect Apache ActiveMQ with those as
>> >> >> >>> >>> well.(Even
>> >> >> >>> >>> through we can connect those with the RabbitMQ)
>> >> >> >>> >>>
>> >> >> >>> >>> STOMP[2]
>> >> >> >>> >>>
>> >> >> >>> >>> With the STOMP protocol , We were able to connect Apache
>> >> >> >>> >>> ActiveMQ
>> >> >> >>> >>> by
>> >> >> >>> >>> using the stomp module.[7]
>> >> >> >>> >>>
>> >> >> >>> >>>
>> >> >> >>> >>> As a summary,
>> >> >> >>> >>> It seems like we need to use STOMP to connect ActiveMQ. But
>> >> >> >>> >>> still,
>> >> >> >>> >>> WSO2
>> >> >> >>> >>> message broker is not supporting STOMP protocol.
>> >> >> >>> >>> IMO Shall we used the hybrid model for connect to the
>> >> >> >>> >>> message
>> >> >> >>> >>> queues.
>> >> >> >>> >>> Such that , we can use STOMP to connect the ActiveMQ and
>> >> >> >>> >>> AMQP
>> >> >> >>> >>> to
>> >> >> >>> >>> connect
>> >> >> >>> >>> WSO2 MB. WDYT?
>> >> >> >>> >>> With txAMQP[4] we were able to connect WSO2 MB using the
>> >> >> >>> >>> qpid
>> >> >> >>> >>> amqp
>> >> >> >>> >>> specifications.
>> >> >> >>> >>> Please share your suggestions and thoughts on this.
>> >> >> >>> >>>
>> >> >> >>> >>>
>> >> >> >>> >>> [1] http://activemq.apache.org/python.html
>> >> >> >>> >>> [2] http://activemq.apache.org/stomp.html
>> >> >> >>> >>> [3] http://barryp.org/software/py-amqplib/
>> >> >> >>> >>> [4] https://launchpad.net/txamqp
>> >> >> >>> >>> [5] https://github.com/pika/pika
>> >> >> >>> >>> [6] https://pypi.python.org/pypi/carrot/
>> >> >> >>> >>> [7] https://github.com/jasonrbriggs/stomp.py
>> >> >> >>> >>>
>> >> >> >>> >>> @Dinesh , Please add If I missed anything here.
>> >> >> >>> >>>
>> >> >> >>> >>>
>> >> >> >>> >>>
>> >> >> >>> >>> Thanks,
>> >> >> >>> >>> Gayan
>> >> >> >>> >>>
>> >> >> >>> >>>
>> >> >> >>> >>> --
>> >> >> >>> >>>
>> >> >> >>> >>>
>> >> >> >>> >>> Gayan Gunarathne
>> >> >> >>> >>> Technical Lead
>> >> >> >>> >>> WSO2 Inc. (http://wso2.com)
>> >> >> >>> >>> email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >>> >>>
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> >
>> >> >> >>> > --
>> >> >> >>> > Best Regards,
>> >> >> >>> >
>> >> >> >>> > Gayan Gunarathne
>> >> >> >>> > Technical Lead
>> >> >> >>> > WSO2 Inc. (http://wso2.com)
>> >> >> >>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >>> >
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> Best Regards,
>> >> >> >>
>> >> >> >> Gayan Gunarathne
>> >> >> >> Technical Lead
>> >> >> >> WSO2 Inc. (http://wso2.com)
>> >> >> >> email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> > Best Regards,
>> >> >> >
>> >> >> > Gayan Gunarathne
>> >> >> > Technical Lead
>> >> >> > WSO2 Inc. (http://wso2.com)
>> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >> >
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Best Regards,
>> >> >
>> >> > Gayan Gunarathne
>> >> > Technical Lead
>> >> > WSO2 Inc. (http://wso2.com)
>> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >
>> >
>> >
>> >
>> >
>> > --
>> > Best Regards,
>> >
>> > Gayan Gunarathne
>> > Technical Lead
>> > WSO2 Inc. (http://wso2.com)
>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >
>>
>>
>>
>> --
>> Akila Ravihansa Perera
>> WSO2 Inc
>>
>> Blog: http://ravihansa3000.blogspot.com
>
>
>
>
> --
> Best Regards,
>
> Gayan Gunarathne
> Technical Lead
> WSO2 Inc. (http://wso2.com)
> email  : gayang@wso2.com  | mobile : +94 766819985
>

Re: Stratos Python Cartridge Agent

Posted by Gayan Gunarathne <ga...@wso2.com>.
Hi Akila,

When we tried with the Apache Qpid Proton-C library we did the following
prerequisites.

    # required dependencies
    yum install gcc cmake libuuid-devel

    # dependencies needed for ssl support
    yum install openssl-devel

    # dependencies needed for bindings
    yum install swig python-devel ruby-devel php-devel perl-devel

    yum install java-1.8.0-openjdk-devel

    yum install epydoc


After that only we were able to build in the Ubuntu and run the python
client with proton support.I guess for every platform we need to do
the same and have to maintain different settings for different
platform.WDYT?


When it comes to the large number of instance, we need to do load
testing with the STOMP protocol.Thanks for pointing out this.



Thanks,

Gayan
















On Wed, Aug 27, 2014 at 10:33 AM, Akila Ravihansa Perera <ravihansa@wso2.com
> wrote:

> Hi Gayan,
>
> What are the concerns/blockers for using Apache Qpid Proton-C library
> [1] with Python binding?
>
> As I understood, this is cross-platform compatible (Linux/Windows) and
> you do not need Java. However, there is a pure Java implementation but
> we can use C/Python binding. We will have to investigate this further
> though.
>
> Have we made an analysis of using STOMP vs AMQP as the communication
> protocol with MB for cartridge agent? We might have to consider this
> because with the upcoming Docker support there can be about 1000+
> instances communicating with the MB.
>
> [1] https://github.com/apache/qpid-proton
>
> On Tue, Aug 26, 2014 at 4:28 PM, Gayan Gunarathne <ga...@wso2.com> wrote:
> > Hi Chris,
> >
> > Thanks for adding the JIRA for ActiveMQ. Yeah It will be a worth
> addition.
> >
> >
> > Thanks,
> > Gayan
> >
> >
> > On Tue, Aug 26, 2014 at 4:14 PM, chris snow <ch...@gmail.com> wrote:
> >>
> >> I guess the agent will need to be configurable to support STOMP for
> >> ActiveMQ installations or AMQP for WSO2MB installations.
> >>
> >> Also, I raised this JIRA:
> >> https://issues.apache.org/jira/browse/AMQ-5332 - it won't happen in
> >> our timescales, but I thought it was worth adding as it seems a lot of
> >> people hit issues with ActiveMQ only supporting AMQP 1.0.
> >>
> >>
> >> On Tue, Aug 26, 2014 at 8:22 AM, Gayan Gunarathne <ga...@wso2.com>
> wrote:
> >> > Yeah Chris.
> >> >
> >> > Exactly the problem we have.Currently lot of python amqp agents for
> >> > RabbitMQ
> >> > which supports AMQP 0-9.[1].
> >> >
> >> > [1] https://www.rabbitmq.com/specification.html
> >> >
> >> > Thanks,
> >> > Gayan
> >> >
> >> >
> >> >
> >> >
> >> > On Tue, Aug 26, 2014 at 12:25 PM, chris snow <ch...@gmail.com>
> >> > wrote:
> >> >>
> >> >> Thanks Gayan!
> >> >>
> >> >> What errors were you hitting?  The few clients I tried give me the
> >> >> error
> >> >> [1].
> >> >>
> >> >> It seems some of f the python amqp libraries don't support version
> 1.0
> >> >> of
> >> >> AMQP?
> >> >>
> >> >> ---
> >> >> [1]
> >> >>
> >> >>
> http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html
> >> >>
> >> >> On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne <ga...@wso2.com>
> >> >> wrote:
> >> >> > Hi Chirs,
> >> >> >
> >> >> > Please find the python client library samples which we are tested.
> >> >> > https://github.com/gayangunarathne/amqp_python_libraries
> >> >> >
> >> >> > Thanks,
> >> >> > Gayan
> >> >> >
> >> >> >
> >> >> > On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne <gayang@wso2.com
> >
> >> >> > wrote:
> >> >> >>
> >> >> >> Hi Chris,
> >> >> >>
> >> >> >> Yeah. We looked that qpid messaging as well.For that we need that
> >> >> >> qpid
> >> >> >> proton library .Is n't?
> >> >> >> AFAIR it is based on CMake and It requires java also[1].
> >> >> >>
> >> >> >> Also we will share with you the samples we try with the amqp
> >> >> >> clients.
> >> >> >>
> >> >> >>
> >> >> >> [1]http://svn.apache.org/repos/asf/qpid/proton/trunk/README
> >> >> >>
> >> >> >>
> >> >> >> Thanks,
> >> >> >> Gayan
> >> >> >>
> >> >> >>
> >> >> >> On Mon, Aug 25, 2014 at 7:33 PM, chris snow <ch...@gmail.com>
> >> >> >> wrote:
> >> >> >>>
> >> >> >>> hi Gayan,
> >> >> >>>
> >> >> >>> What are the issues that you received from the various AMQP
> >> >> >>> libraries?
> >> >> >>> Do you have a code repo that I can take a look at to try and
> >> >> >>> replicate
> >> >> >>> the errors?
> >> >> >>> Did you investigate qpid [1]?
> >> >> >>>
> >> >> >>> Many thanks
> >> >> >>>
> >> >> >>> Chris
> >> >> >>>
> >> >> >>> ---
> >> >> >>> [1]
> >> >> >>>
> >> >> >>>
> >> >> >>>
> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
> >> >> >>>
> >> >> >>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne <
> gayang@wso2.com>
> >> >> >>> wrote:
> >> >> >>> > Hi Chris,
> >> >> >>> >
> >> >> >>> > We try to replace our java cartridge agent with the python as
> >> >> >>> > after
> >> >> >>> > that we
> >> >> >>> > can remove the java dependency from the cartridge itself.I
> guess
> >> >> >>> > this
> >> >> >>> > is
> >> >> >>> > also vital for the Docker support too.
> >> >> >>> >
> >> >> >>> > In Apache ActiveMQ site also AMQP support is based on the
> >> >> >>> > JMS/AMQP[1].
> >> >> >>> > I
> >> >> >>> > guess message broker implementation will be different from one
> MQ
> >> >> >>> > to
> >> >> >>> > other
> >> >> >>> > as some python client which able to connect with RabbitMQ
> >> >> >>> > successfully
> >> >> >>> > ,still fails with the ActiveMQ.
> >> >> >>> >
> >> >> >>> > [1] http://activemq.apache.org/amqp.html
> >> >> >>> >
> >> >> >>> > Thanks,
> >> >> >>> > Gayan
> >> >> >>> >
> >> >> >>> >
> >> >> >>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow <
> chsnow123@gmail.com>
> >> >> >>> > wrote:
> >> >> >>> >>
> >> >> >>> >> Is the issue because we currently have a mix of JMS/AMQP/Jndi?
> >> >> >>> >> If
> >> >> >>> >> we
> >> >> >>> >> had a
> >> >> >>> >> pure AMQP approach would these problems go away?  AFAIK, one
> of
> >> >> >>> >> the
> >> >> >>> >> drivers
> >> >> >>> >> for AMQP was interoperability with all languages, rather than
> >> >> >>> >> jms
> >> >> >>> >> which is
> >> >> >>> >> focused on Java.
> >> >> >>> >>
> >> >> >>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne" <ga...@wso2.com>
> >> >> >>> >> wrote:
> >> >> >>> >>>
> >> >> >>> >>> Hi All,
> >> >> >>> >>>
> >> >> >>> >>> With related to the python cartridge agent , Dinesh and
> myself
> >> >> >>> >>> do
> >> >> >>> >>> some
> >> >> >>> >>> research related to the Apache ActiveMQ connectivity using
> the
> >> >> >>> >>> python
> >> >> >>> >>> client.
> >> >> >>> >>>
> >> >> >>> >>> Following our findings on this.
> >> >> >>> >>>
> >> >> >>> >>> AMQP
> >> >> >>> >>>
> >> >> >>> >>> AFAWU we need to have  pyactivemq , which is a Python wrapper
> >> >> >>> >>> for
> >> >> >>> >>> the
> >> >> >>> >>> ActiveMQ C++ Library,[1] But we won't be able to use this
> >> >> >>> >>> module
> >> >> >>> >>> as
> >> >> >>> >>> it is
> >> >> >>> >>> platform dependent.
> >> >> >>> >>> Also we checked the following client libraries as well(those
> >> >> >>> >>> are
> >> >> >>> >>> recommended with the RabbitMQ)
> >> >> >>> >>> [3] py-amqplib
> >> >> >>> >>> [4] txAMQP
> >> >> >>> >>> [5] pika
> >> >> >>> >>> [6] Carrot (has copy right licence)
> >> >> >>> >>>
> >> >> >>> >>> But we were unable to connect Apache ActiveMQ with those as
> >> >> >>> >>> well.(Even
> >> >> >>> >>> through we can connect those with the RabbitMQ)
> >> >> >>> >>>
> >> >> >>> >>> STOMP[2]
> >> >> >>> >>>
> >> >> >>> >>> With the STOMP protocol , We were able to connect Apache
> >> >> >>> >>> ActiveMQ
> >> >> >>> >>> by
> >> >> >>> >>> using the stomp module.[7]
> >> >> >>> >>>
> >> >> >>> >>>
> >> >> >>> >>> As a summary,
> >> >> >>> >>> It seems like we need to use STOMP to connect ActiveMQ. But
> >> >> >>> >>> still,
> >> >> >>> >>> WSO2
> >> >> >>> >>> message broker is not supporting STOMP protocol.
> >> >> >>> >>> IMO Shall we used the hybrid model for connect to the message
> >> >> >>> >>> queues.
> >> >> >>> >>> Such that , we can use STOMP to connect the ActiveMQ and AMQP
> >> >> >>> >>> to
> >> >> >>> >>> connect
> >> >> >>> >>> WSO2 MB. WDYT?
> >> >> >>> >>> With txAMQP[4] we were able to connect WSO2 MB using the qpid
> >> >> >>> >>> amqp
> >> >> >>> >>> specifications.
> >> >> >>> >>> Please share your suggestions and thoughts on this.
> >> >> >>> >>>
> >> >> >>> >>>
> >> >> >>> >>> [1] http://activemq.apache.org/python.html
> >> >> >>> >>> [2] http://activemq.apache.org/stomp.html
> >> >> >>> >>> [3] http://barryp.org/software/py-amqplib/
> >> >> >>> >>> [4] https://launchpad.net/txamqp
> >> >> >>> >>> [5] https://github.com/pika/pika
> >> >> >>> >>> [6] https://pypi.python.org/pypi/carrot/
> >> >> >>> >>> [7] https://github.com/jasonrbriggs/stomp.py
> >> >> >>> >>>
> >> >> >>> >>> @Dinesh , Please add If I missed anything here.
> >> >> >>> >>>
> >> >> >>> >>>
> >> >> >>> >>>
> >> >> >>> >>> Thanks,
> >> >> >>> >>> Gayan
> >> >> >>> >>>
> >> >> >>> >>>
> >> >> >>> >>> --
> >> >> >>> >>>
> >> >> >>> >>>
> >> >> >>> >>> Gayan Gunarathne
> >> >> >>> >>> Technical Lead
> >> >> >>> >>> WSO2 Inc. (http://wso2.com)
> >> >> >>> >>> email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >>> >>>
> >> >> >>> >
> >> >> >>> >
> >> >> >>> >
> >> >> >>> >
> >> >> >>> > --
> >> >> >>> > Best Regards,
> >> >> >>> >
> >> >> >>> > Gayan Gunarathne
> >> >> >>> > Technical Lead
> >> >> >>> > WSO2 Inc. (http://wso2.com)
> >> >> >>> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >>> >
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >> Best Regards,
> >> >> >>
> >> >> >> Gayan Gunarathne
> >> >> >> Technical Lead
> >> >> >> WSO2 Inc. (http://wso2.com)
> >> >> >> email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >>
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> > Best Regards,
> >> >> >
> >> >> > Gayan Gunarathne
> >> >> > Technical Lead
> >> >> > WSO2 Inc. (http://wso2.com)
> >> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >> >
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Best Regards,
> >> >
> >> > Gayan Gunarathne
> >> > Technical Lead
> >> > WSO2 Inc. (http://wso2.com)
> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >
> >
> >
> >
> >
> > --
> > Best Regards,
> >
> > Gayan Gunarathne
> > Technical Lead
> > WSO2 Inc. (http://wso2.com)
> > email  : gayang@wso2.com  | mobile : +94 766819985
> >
>
>
>
> --
> Akila Ravihansa Perera
> WSO2 Inc
>
> Blog: http://ravihansa3000.blogspot.com
>



-- 
Best Regards,

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gayang@wso2.com  | mobile : +94 766819985

Re: Stratos Python Cartridge Agent

Posted by Akila Ravihansa Perera <ra...@wso2.com>.
Hi Gayan,

What are the concerns/blockers for using Apache Qpid Proton-C library
[1] with Python binding?

As I understood, this is cross-platform compatible (Linux/Windows) and
you do not need Java. However, there is a pure Java implementation but
we can use C/Python binding. We will have to investigate this further
though.

Have we made an analysis of using STOMP vs AMQP as the communication
protocol with MB for cartridge agent? We might have to consider this
because with the upcoming Docker support there can be about 1000+
instances communicating with the MB.

[1] https://github.com/apache/qpid-proton

On Tue, Aug 26, 2014 at 4:28 PM, Gayan Gunarathne <ga...@wso2.com> wrote:
> Hi Chris,
>
> Thanks for adding the JIRA for ActiveMQ. Yeah It will be a worth addition.
>
>
> Thanks,
> Gayan
>
>
> On Tue, Aug 26, 2014 at 4:14 PM, chris snow <ch...@gmail.com> wrote:
>>
>> I guess the agent will need to be configurable to support STOMP for
>> ActiveMQ installations or AMQP for WSO2MB installations.
>>
>> Also, I raised this JIRA:
>> https://issues.apache.org/jira/browse/AMQ-5332 - it won't happen in
>> our timescales, but I thought it was worth adding as it seems a lot of
>> people hit issues with ActiveMQ only supporting AMQP 1.0.
>>
>>
>> On Tue, Aug 26, 2014 at 8:22 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
>> > Yeah Chris.
>> >
>> > Exactly the problem we have.Currently lot of python amqp agents for
>> > RabbitMQ
>> > which supports AMQP 0-9.[1].
>> >
>> > [1] https://www.rabbitmq.com/specification.html
>> >
>> > Thanks,
>> > Gayan
>> >
>> >
>> >
>> >
>> > On Tue, Aug 26, 2014 at 12:25 PM, chris snow <ch...@gmail.com>
>> > wrote:
>> >>
>> >> Thanks Gayan!
>> >>
>> >> What errors were you hitting?  The few clients I tried give me the
>> >> error
>> >> [1].
>> >>
>> >> It seems some of f the python amqp libraries don't support version 1.0
>> >> of
>> >> AMQP?
>> >>
>> >> ---
>> >> [1]
>> >>
>> >> http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html
>> >>
>> >> On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne <ga...@wso2.com>
>> >> wrote:
>> >> > Hi Chirs,
>> >> >
>> >> > Please find the python client library samples which we are tested.
>> >> > https://github.com/gayangunarathne/amqp_python_libraries
>> >> >
>> >> > Thanks,
>> >> > Gayan
>> >> >
>> >> >
>> >> > On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne <ga...@wso2.com>
>> >> > wrote:
>> >> >>
>> >> >> Hi Chris,
>> >> >>
>> >> >> Yeah. We looked that qpid messaging as well.For that we need that
>> >> >> qpid
>> >> >> proton library .Is n't?
>> >> >> AFAIR it is based on CMake and It requires java also[1].
>> >> >>
>> >> >> Also we will share with you the samples we try with the amqp
>> >> >> clients.
>> >> >>
>> >> >>
>> >> >> [1]http://svn.apache.org/repos/asf/qpid/proton/trunk/README
>> >> >>
>> >> >>
>> >> >> Thanks,
>> >> >> Gayan
>> >> >>
>> >> >>
>> >> >> On Mon, Aug 25, 2014 at 7:33 PM, chris snow <ch...@gmail.com>
>> >> >> wrote:
>> >> >>>
>> >> >>> hi Gayan,
>> >> >>>
>> >> >>> What are the issues that you received from the various AMQP
>> >> >>> libraries?
>> >> >>> Do you have a code repo that I can take a look at to try and
>> >> >>> replicate
>> >> >>> the errors?
>> >> >>> Did you investigate qpid [1]?
>> >> >>>
>> >> >>> Many thanks
>> >> >>>
>> >> >>> Chris
>> >> >>>
>> >> >>> ---
>> >> >>> [1]
>> >> >>>
>> >> >>>
>> >> >>> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
>> >> >>>
>> >> >>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne <ga...@wso2.com>
>> >> >>> wrote:
>> >> >>> > Hi Chris,
>> >> >>> >
>> >> >>> > We try to replace our java cartridge agent with the python as
>> >> >>> > after
>> >> >>> > that we
>> >> >>> > can remove the java dependency from the cartridge itself.I guess
>> >> >>> > this
>> >> >>> > is
>> >> >>> > also vital for the Docker support too.
>> >> >>> >
>> >> >>> > In Apache ActiveMQ site also AMQP support is based on the
>> >> >>> > JMS/AMQP[1].
>> >> >>> > I
>> >> >>> > guess message broker implementation will be different from one MQ
>> >> >>> > to
>> >> >>> > other
>> >> >>> > as some python client which able to connect with RabbitMQ
>> >> >>> > successfully
>> >> >>> > ,still fails with the ActiveMQ.
>> >> >>> >
>> >> >>> > [1] http://activemq.apache.org/amqp.html
>> >> >>> >
>> >> >>> > Thanks,
>> >> >>> > Gayan
>> >> >>> >
>> >> >>> >
>> >> >>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow <ch...@gmail.com>
>> >> >>> > wrote:
>> >> >>> >>
>> >> >>> >> Is the issue because we currently have a mix of JMS/AMQP/Jndi?
>> >> >>> >> If
>> >> >>> >> we
>> >> >>> >> had a
>> >> >>> >> pure AMQP approach would these problems go away?  AFAIK, one of
>> >> >>> >> the
>> >> >>> >> drivers
>> >> >>> >> for AMQP was interoperability with all languages, rather than
>> >> >>> >> jms
>> >> >>> >> which is
>> >> >>> >> focused on Java.
>> >> >>> >>
>> >> >>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne" <ga...@wso2.com>
>> >> >>> >> wrote:
>> >> >>> >>>
>> >> >>> >>> Hi All,
>> >> >>> >>>
>> >> >>> >>> With related to the python cartridge agent , Dinesh and myself
>> >> >>> >>> do
>> >> >>> >>> some
>> >> >>> >>> research related to the Apache ActiveMQ connectivity using the
>> >> >>> >>> python
>> >> >>> >>> client.
>> >> >>> >>>
>> >> >>> >>> Following our findings on this.
>> >> >>> >>>
>> >> >>> >>> AMQP
>> >> >>> >>>
>> >> >>> >>> AFAWU we need to have  pyactivemq , which is a Python wrapper
>> >> >>> >>> for
>> >> >>> >>> the
>> >> >>> >>> ActiveMQ C++ Library,[1] But we won't be able to use this
>> >> >>> >>> module
>> >> >>> >>> as
>> >> >>> >>> it is
>> >> >>> >>> platform dependent.
>> >> >>> >>> Also we checked the following client libraries as well(those
>> >> >>> >>> are
>> >> >>> >>> recommended with the RabbitMQ)
>> >> >>> >>> [3] py-amqplib
>> >> >>> >>> [4] txAMQP
>> >> >>> >>> [5] pika
>> >> >>> >>> [6] Carrot (has copy right licence)
>> >> >>> >>>
>> >> >>> >>> But we were unable to connect Apache ActiveMQ with those as
>> >> >>> >>> well.(Even
>> >> >>> >>> through we can connect those with the RabbitMQ)
>> >> >>> >>>
>> >> >>> >>> STOMP[2]
>> >> >>> >>>
>> >> >>> >>> With the STOMP protocol , We were able to connect Apache
>> >> >>> >>> ActiveMQ
>> >> >>> >>> by
>> >> >>> >>> using the stomp module.[7]
>> >> >>> >>>
>> >> >>> >>>
>> >> >>> >>> As a summary,
>> >> >>> >>> It seems like we need to use STOMP to connect ActiveMQ. But
>> >> >>> >>> still,
>> >> >>> >>> WSO2
>> >> >>> >>> message broker is not supporting STOMP protocol.
>> >> >>> >>> IMO Shall we used the hybrid model for connect to the message
>> >> >>> >>> queues.
>> >> >>> >>> Such that , we can use STOMP to connect the ActiveMQ and AMQP
>> >> >>> >>> to
>> >> >>> >>> connect
>> >> >>> >>> WSO2 MB. WDYT?
>> >> >>> >>> With txAMQP[4] we were able to connect WSO2 MB using the qpid
>> >> >>> >>> amqp
>> >> >>> >>> specifications.
>> >> >>> >>> Please share your suggestions and thoughts on this.
>> >> >>> >>>
>> >> >>> >>>
>> >> >>> >>> [1] http://activemq.apache.org/python.html
>> >> >>> >>> [2] http://activemq.apache.org/stomp.html
>> >> >>> >>> [3] http://barryp.org/software/py-amqplib/
>> >> >>> >>> [4] https://launchpad.net/txamqp
>> >> >>> >>> [5] https://github.com/pika/pika
>> >> >>> >>> [6] https://pypi.python.org/pypi/carrot/
>> >> >>> >>> [7] https://github.com/jasonrbriggs/stomp.py
>> >> >>> >>>
>> >> >>> >>> @Dinesh , Please add If I missed anything here.
>> >> >>> >>>
>> >> >>> >>>
>> >> >>> >>>
>> >> >>> >>> Thanks,
>> >> >>> >>> Gayan
>> >> >>> >>>
>> >> >>> >>>
>> >> >>> >>> --
>> >> >>> >>>
>> >> >>> >>>
>> >> >>> >>> Gayan Gunarathne
>> >> >>> >>> Technical Lead
>> >> >>> >>> WSO2 Inc. (http://wso2.com)
>> >> >>> >>> email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >>> >>>
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> >
>> >> >>> > --
>> >> >>> > Best Regards,
>> >> >>> >
>> >> >>> > Gayan Gunarathne
>> >> >>> > Technical Lead
>> >> >>> > WSO2 Inc. (http://wso2.com)
>> >> >>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >>> >
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Best Regards,
>> >> >>
>> >> >> Gayan Gunarathne
>> >> >> Technical Lead
>> >> >> WSO2 Inc. (http://wso2.com)
>> >> >> email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > Best Regards,
>> >> >
>> >> > Gayan Gunarathne
>> >> > Technical Lead
>> >> > WSO2 Inc. (http://wso2.com)
>> >> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >> >
>> >
>> >
>> >
>> >
>> > --
>> > Best Regards,
>> >
>> > Gayan Gunarathne
>> > Technical Lead
>> > WSO2 Inc. (http://wso2.com)
>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >
>
>
>
>
> --
> Best Regards,
>
> Gayan Gunarathne
> Technical Lead
> WSO2 Inc. (http://wso2.com)
> email  : gayang@wso2.com  | mobile : +94 766819985
>



-- 
Akila Ravihansa Perera
WSO2 Inc

Blog: http://ravihansa3000.blogspot.com

Re: Stratos Python Cartridge Agent

Posted by Gayan Gunarathne <ga...@wso2.com>.
Hi Chris,

Thanks for adding the JIRA for ActiveMQ. Yeah It will be a worth addition.


Thanks,
Gayan


On Tue, Aug 26, 2014 at 4:14 PM, chris snow <ch...@gmail.com> wrote:

> I guess the agent will need to be configurable to support STOMP for
> ActiveMQ installations or AMQP for WSO2MB installations.
>
> Also, I raised this JIRA:
> https://issues.apache.org/jira/browse/AMQ-5332 - it won't happen in
> our timescales, but I thought it was worth adding as it seems a lot of
> people hit issues with ActiveMQ only supporting AMQP 1.0.
>
>
> On Tue, Aug 26, 2014 at 8:22 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
> > Yeah Chris.
> >
> > Exactly the problem we have.Currently lot of python amqp agents for
> RabbitMQ
> > which supports AMQP 0-9.[1].
> >
> > [1] https://www.rabbitmq.com/specification.html
> >
> > Thanks,
> > Gayan
> >
> >
> >
> >
> > On Tue, Aug 26, 2014 at 12:25 PM, chris snow <ch...@gmail.com>
> wrote:
> >>
> >> Thanks Gayan!
> >>
> >> What errors were you hitting?  The few clients I tried give me the error
> >> [1].
> >>
> >> It seems some of f the python amqp libraries don't support version 1.0
> of
> >> AMQP?
> >>
> >> ---
> >> [1]
> >>
> http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html
> >>
> >> On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne <ga...@wso2.com>
> wrote:
> >> > Hi Chirs,
> >> >
> >> > Please find the python client library samples which we are tested.
> >> > https://github.com/gayangunarathne/amqp_python_libraries
> >> >
> >> > Thanks,
> >> > Gayan
> >> >
> >> >
> >> > On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne <ga...@wso2.com>
> >> > wrote:
> >> >>
> >> >> Hi Chris,
> >> >>
> >> >> Yeah. We looked that qpid messaging as well.For that we need that
> qpid
> >> >> proton library .Is n't?
> >> >> AFAIR it is based on CMake and It requires java also[1].
> >> >>
> >> >> Also we will share with you the samples we try with the amqp clients.
> >> >>
> >> >>
> >> >> [1]http://svn.apache.org/repos/asf/qpid/proton/trunk/README
> >> >>
> >> >>
> >> >> Thanks,
> >> >> Gayan
> >> >>
> >> >>
> >> >> On Mon, Aug 25, 2014 at 7:33 PM, chris snow <ch...@gmail.com>
> >> >> wrote:
> >> >>>
> >> >>> hi Gayan,
> >> >>>
> >> >>> What are the issues that you received from the various AMQP
> libraries?
> >> >>> Do you have a code repo that I can take a look at to try and
> replicate
> >> >>> the errors?
> >> >>> Did you investigate qpid [1]?
> >> >>>
> >> >>> Many thanks
> >> >>>
> >> >>> Chris
> >> >>>
> >> >>> ---
> >> >>> [1]
> >> >>>
> >> >>>
> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
> >> >>>
> >> >>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne <ga...@wso2.com>
> >> >>> wrote:
> >> >>> > Hi Chris,
> >> >>> >
> >> >>> > We try to replace our java cartridge agent with the python as
> after
> >> >>> > that we
> >> >>> > can remove the java dependency from the cartridge itself.I guess
> >> >>> > this
> >> >>> > is
> >> >>> > also vital for the Docker support too.
> >> >>> >
> >> >>> > In Apache ActiveMQ site also AMQP support is based on the
> >> >>> > JMS/AMQP[1].
> >> >>> > I
> >> >>> > guess message broker implementation will be different from one MQ
> to
> >> >>> > other
> >> >>> > as some python client which able to connect with RabbitMQ
> >> >>> > successfully
> >> >>> > ,still fails with the ActiveMQ.
> >> >>> >
> >> >>> > [1] http://activemq.apache.org/amqp.html
> >> >>> >
> >> >>> > Thanks,
> >> >>> > Gayan
> >> >>> >
> >> >>> >
> >> >>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow <ch...@gmail.com>
> >> >>> > wrote:
> >> >>> >>
> >> >>> >> Is the issue because we currently have a mix of JMS/AMQP/Jndi? If
> >> >>> >> we
> >> >>> >> had a
> >> >>> >> pure AMQP approach would these problems go away?  AFAIK, one of
> the
> >> >>> >> drivers
> >> >>> >> for AMQP was interoperability with all languages, rather than jms
> >> >>> >> which is
> >> >>> >> focused on Java.
> >> >>> >>
> >> >>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne" <ga...@wso2.com>
> wrote:
> >> >>> >>>
> >> >>> >>> Hi All,
> >> >>> >>>
> >> >>> >>> With related to the python cartridge agent , Dinesh and myself
> do
> >> >>> >>> some
> >> >>> >>> research related to the Apache ActiveMQ connectivity using the
> >> >>> >>> python
> >> >>> >>> client.
> >> >>> >>>
> >> >>> >>> Following our findings on this.
> >> >>> >>>
> >> >>> >>> AMQP
> >> >>> >>>
> >> >>> >>> AFAWU we need to have  pyactivemq , which is a Python wrapper
> for
> >> >>> >>> the
> >> >>> >>> ActiveMQ C++ Library,[1] But we won't be able to use this module
> >> >>> >>> as
> >> >>> >>> it is
> >> >>> >>> platform dependent.
> >> >>> >>> Also we checked the following client libraries as well(those are
> >> >>> >>> recommended with the RabbitMQ)
> >> >>> >>> [3] py-amqplib
> >> >>> >>> [4] txAMQP
> >> >>> >>> [5] pika
> >> >>> >>> [6] Carrot (has copy right licence)
> >> >>> >>>
> >> >>> >>> But we were unable to connect Apache ActiveMQ with those as
> >> >>> >>> well.(Even
> >> >>> >>> through we can connect those with the RabbitMQ)
> >> >>> >>>
> >> >>> >>> STOMP[2]
> >> >>> >>>
> >> >>> >>> With the STOMP protocol , We were able to connect Apache
> ActiveMQ
> >> >>> >>> by
> >> >>> >>> using the stomp module.[7]
> >> >>> >>>
> >> >>> >>>
> >> >>> >>> As a summary,
> >> >>> >>> It seems like we need to use STOMP to connect ActiveMQ. But
> still,
> >> >>> >>> WSO2
> >> >>> >>> message broker is not supporting STOMP protocol.
> >> >>> >>> IMO Shall we used the hybrid model for connect to the message
> >> >>> >>> queues.
> >> >>> >>> Such that , we can use STOMP to connect the ActiveMQ and AMQP to
> >> >>> >>> connect
> >> >>> >>> WSO2 MB. WDYT?
> >> >>> >>> With txAMQP[4] we were able to connect WSO2 MB using the qpid
> amqp
> >> >>> >>> specifications.
> >> >>> >>> Please share your suggestions and thoughts on this.
> >> >>> >>>
> >> >>> >>>
> >> >>> >>> [1] http://activemq.apache.org/python.html
> >> >>> >>> [2] http://activemq.apache.org/stomp.html
> >> >>> >>> [3] http://barryp.org/software/py-amqplib/
> >> >>> >>> [4] https://launchpad.net/txamqp
> >> >>> >>> [5] https://github.com/pika/pika
> >> >>> >>> [6] https://pypi.python.org/pypi/carrot/
> >> >>> >>> [7] https://github.com/jasonrbriggs/stomp.py
> >> >>> >>>
> >> >>> >>> @Dinesh , Please add If I missed anything here.
> >> >>> >>>
> >> >>> >>>
> >> >>> >>>
> >> >>> >>> Thanks,
> >> >>> >>> Gayan
> >> >>> >>>
> >> >>> >>>
> >> >>> >>> --
> >> >>> >>>
> >> >>> >>>
> >> >>> >>> Gayan Gunarathne
> >> >>> >>> Technical Lead
> >> >>> >>> WSO2 Inc. (http://wso2.com)
> >> >>> >>> email  : gayang@wso2.com  | mobile : +94 766819985
> >> >>> >>>
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> >
> >> >>> > --
> >> >>> > Best Regards,
> >> >>> >
> >> >>> > Gayan Gunarathne
> >> >>> > Technical Lead
> >> >>> > WSO2 Inc. (http://wso2.com)
> >> >>> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >>> >
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Best Regards,
> >> >>
> >> >> Gayan Gunarathne
> >> >> Technical Lead
> >> >> WSO2 Inc. (http://wso2.com)
> >> >> email  : gayang@wso2.com  | mobile : +94 766819985
> >> >>
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Best Regards,
> >> >
> >> > Gayan Gunarathne
> >> > Technical Lead
> >> > WSO2 Inc. (http://wso2.com)
> >> > email  : gayang@wso2.com  | mobile : +94 766819985
> >> >
> >
> >
> >
> >
> > --
> > Best Regards,
> >
> > Gayan Gunarathne
> > Technical Lead
> > WSO2 Inc. (http://wso2.com)
> > email  : gayang@wso2.com  | mobile : +94 766819985
> >
>



-- 
Best Regards,

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gayang@wso2.com  | mobile : +94 766819985

Re: Stratos Python Cartridge Agent

Posted by chris snow <ch...@gmail.com>.
I guess the agent will need to be configurable to support STOMP for
ActiveMQ installations or AMQP for WSO2MB installations.

Also, I raised this JIRA:
https://issues.apache.org/jira/browse/AMQ-5332 - it won't happen in
our timescales, but I thought it was worth adding as it seems a lot of
people hit issues with ActiveMQ only supporting AMQP 1.0.


On Tue, Aug 26, 2014 at 8:22 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
> Yeah Chris.
>
> Exactly the problem we have.Currently lot of python amqp agents for RabbitMQ
> which supports AMQP 0-9.[1].
>
> [1] https://www.rabbitmq.com/specification.html
>
> Thanks,
> Gayan
>
>
>
>
> On Tue, Aug 26, 2014 at 12:25 PM, chris snow <ch...@gmail.com> wrote:
>>
>> Thanks Gayan!
>>
>> What errors were you hitting?  The few clients I tried give me the error
>> [1].
>>
>> It seems some of f the python amqp libraries don't support version 1.0 of
>> AMQP?
>>
>> ---
>> [1]
>> http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html
>>
>> On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
>> > Hi Chirs,
>> >
>> > Please find the python client library samples which we are tested.
>> > https://github.com/gayangunarathne/amqp_python_libraries
>> >
>> > Thanks,
>> > Gayan
>> >
>> >
>> > On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne <ga...@wso2.com>
>> > wrote:
>> >>
>> >> Hi Chris,
>> >>
>> >> Yeah. We looked that qpid messaging as well.For that we need that qpid
>> >> proton library .Is n't?
>> >> AFAIR it is based on CMake and It requires java also[1].
>> >>
>> >> Also we will share with you the samples we try with the amqp clients.
>> >>
>> >>
>> >> [1]http://svn.apache.org/repos/asf/qpid/proton/trunk/README
>> >>
>> >>
>> >> Thanks,
>> >> Gayan
>> >>
>> >>
>> >> On Mon, Aug 25, 2014 at 7:33 PM, chris snow <ch...@gmail.com>
>> >> wrote:
>> >>>
>> >>> hi Gayan,
>> >>>
>> >>> What are the issues that you received from the various AMQP libraries?
>> >>> Do you have a code repo that I can take a look at to try and replicate
>> >>> the errors?
>> >>> Did you investigate qpid [1]?
>> >>>
>> >>> Many thanks
>> >>>
>> >>> Chris
>> >>>
>> >>> ---
>> >>> [1]
>> >>>
>> >>> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
>> >>>
>> >>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne <ga...@wso2.com>
>> >>> wrote:
>> >>> > Hi Chris,
>> >>> >
>> >>> > We try to replace our java cartridge agent with the python as after
>> >>> > that we
>> >>> > can remove the java dependency from the cartridge itself.I guess
>> >>> > this
>> >>> > is
>> >>> > also vital for the Docker support too.
>> >>> >
>> >>> > In Apache ActiveMQ site also AMQP support is based on the
>> >>> > JMS/AMQP[1].
>> >>> > I
>> >>> > guess message broker implementation will be different from one MQ to
>> >>> > other
>> >>> > as some python client which able to connect with RabbitMQ
>> >>> > successfully
>> >>> > ,still fails with the ActiveMQ.
>> >>> >
>> >>> > [1] http://activemq.apache.org/amqp.html
>> >>> >
>> >>> > Thanks,
>> >>> > Gayan
>> >>> >
>> >>> >
>> >>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow <ch...@gmail.com>
>> >>> > wrote:
>> >>> >>
>> >>> >> Is the issue because we currently have a mix of JMS/AMQP/Jndi? If
>> >>> >> we
>> >>> >> had a
>> >>> >> pure AMQP approach would these problems go away?  AFAIK, one of the
>> >>> >> drivers
>> >>> >> for AMQP was interoperability with all languages, rather than jms
>> >>> >> which is
>> >>> >> focused on Java.
>> >>> >>
>> >>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne" <ga...@wso2.com> wrote:
>> >>> >>>
>> >>> >>> Hi All,
>> >>> >>>
>> >>> >>> With related to the python cartridge agent , Dinesh and myself do
>> >>> >>> some
>> >>> >>> research related to the Apache ActiveMQ connectivity using the
>> >>> >>> python
>> >>> >>> client.
>> >>> >>>
>> >>> >>> Following our findings on this.
>> >>> >>>
>> >>> >>> AMQP
>> >>> >>>
>> >>> >>> AFAWU we need to have  pyactivemq , which is a Python wrapper for
>> >>> >>> the
>> >>> >>> ActiveMQ C++ Library,[1] But we won't be able to use this module
>> >>> >>> as
>> >>> >>> it is
>> >>> >>> platform dependent.
>> >>> >>> Also we checked the following client libraries as well(those are
>> >>> >>> recommended with the RabbitMQ)
>> >>> >>> [3] py-amqplib
>> >>> >>> [4] txAMQP
>> >>> >>> [5] pika
>> >>> >>> [6] Carrot (has copy right licence)
>> >>> >>>
>> >>> >>> But we were unable to connect Apache ActiveMQ with those as
>> >>> >>> well.(Even
>> >>> >>> through we can connect those with the RabbitMQ)
>> >>> >>>
>> >>> >>> STOMP[2]
>> >>> >>>
>> >>> >>> With the STOMP protocol , We were able to connect Apache ActiveMQ
>> >>> >>> by
>> >>> >>> using the stomp module.[7]
>> >>> >>>
>> >>> >>>
>> >>> >>> As a summary,
>> >>> >>> It seems like we need to use STOMP to connect ActiveMQ. But still,
>> >>> >>> WSO2
>> >>> >>> message broker is not supporting STOMP protocol.
>> >>> >>> IMO Shall we used the hybrid model for connect to the message
>> >>> >>> queues.
>> >>> >>> Such that , we can use STOMP to connect the ActiveMQ and AMQP to
>> >>> >>> connect
>> >>> >>> WSO2 MB. WDYT?
>> >>> >>> With txAMQP[4] we were able to connect WSO2 MB using the qpid amqp
>> >>> >>> specifications.
>> >>> >>> Please share your suggestions and thoughts on this.
>> >>> >>>
>> >>> >>>
>> >>> >>> [1] http://activemq.apache.org/python.html
>> >>> >>> [2] http://activemq.apache.org/stomp.html
>> >>> >>> [3] http://barryp.org/software/py-amqplib/
>> >>> >>> [4] https://launchpad.net/txamqp
>> >>> >>> [5] https://github.com/pika/pika
>> >>> >>> [6] https://pypi.python.org/pypi/carrot/
>> >>> >>> [7] https://github.com/jasonrbriggs/stomp.py
>> >>> >>>
>> >>> >>> @Dinesh , Please add If I missed anything here.
>> >>> >>>
>> >>> >>>
>> >>> >>>
>> >>> >>> Thanks,
>> >>> >>> Gayan
>> >>> >>>
>> >>> >>>
>> >>> >>> --
>> >>> >>>
>> >>> >>>
>> >>> >>> Gayan Gunarathne
>> >>> >>> Technical Lead
>> >>> >>> WSO2 Inc. (http://wso2.com)
>> >>> >>> email  : gayang@wso2.com  | mobile : +94 766819985
>> >>> >>>
>> >>> >
>> >>> >
>> >>> >
>> >>> >
>> >>> > --
>> >>> > Best Regards,
>> >>> >
>> >>> > Gayan Gunarathne
>> >>> > Technical Lead
>> >>> > WSO2 Inc. (http://wso2.com)
>> >>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >>> >
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >> Best Regards,
>> >>
>> >> Gayan Gunarathne
>> >> Technical Lead
>> >> WSO2 Inc. (http://wso2.com)
>> >> email  : gayang@wso2.com  | mobile : +94 766819985
>> >>
>> >
>> >
>> >
>> >
>> > --
>> > Best Regards,
>> >
>> > Gayan Gunarathne
>> > Technical Lead
>> > WSO2 Inc. (http://wso2.com)
>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >
>
>
>
>
> --
> Best Regards,
>
> Gayan Gunarathne
> Technical Lead
> WSO2 Inc. (http://wso2.com)
> email  : gayang@wso2.com  | mobile : +94 766819985
>

Re: Stratos Python Cartridge Agent

Posted by Gayan Gunarathne <ga...@wso2.com>.
Yeah Chris.

Exactly the problem we have.Currently lot of python amqp agents for
RabbitMQ which supports AMQP 0-9.[1].

[1] https://www.rabbitmq.com/specification.html

Thanks,
Gayan




On Tue, Aug 26, 2014 at 12:25 PM, chris snow <ch...@gmail.com> wrote:

> Thanks Gayan!
>
> What errors were you hitting?  The few clients I tried give me the error
> [1].
>
> It seems some of f the python amqp libraries don't support version 1.0 of
> AMQP?
>
> ---
> [1]
> http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html
>
> On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
> > Hi Chirs,
> >
> > Please find the python client library samples which we are tested.
> > https://github.com/gayangunarathne/amqp_python_libraries
> >
> > Thanks,
> > Gayan
> >
> >
> > On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne <ga...@wso2.com>
> wrote:
> >>
> >> Hi Chris,
> >>
> >> Yeah. We looked that qpid messaging as well.For that we need that qpid
> >> proton library .Is n't?
> >> AFAIR it is based on CMake and It requires java also[1].
> >>
> >> Also we will share with you the samples we try with the amqp clients.
> >>
> >>
> >> [1]http://svn.apache.org/repos/asf/qpid/proton/trunk/README
> >>
> >>
> >> Thanks,
> >> Gayan
> >>
> >>
> >> On Mon, Aug 25, 2014 at 7:33 PM, chris snow <ch...@gmail.com>
> wrote:
> >>>
> >>> hi Gayan,
> >>>
> >>> What are the issues that you received from the various AMQP libraries?
> >>> Do you have a code repo that I can take a look at to try and replicate
> >>> the errors?
> >>> Did you investigate qpid [1]?
> >>>
> >>> Many thanks
> >>>
> >>> Chris
> >>>
> >>> ---
> >>> [1]
> >>>
> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
> >>>
> >>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne <ga...@wso2.com>
> >>> wrote:
> >>> > Hi Chris,
> >>> >
> >>> > We try to replace our java cartridge agent with the python as after
> >>> > that we
> >>> > can remove the java dependency from the cartridge itself.I guess this
> >>> > is
> >>> > also vital for the Docker support too.
> >>> >
> >>> > In Apache ActiveMQ site also AMQP support is based on the
> JMS/AMQP[1].
> >>> > I
> >>> > guess message broker implementation will be different from one MQ to
> >>> > other
> >>> > as some python client which able to connect with RabbitMQ
> successfully
> >>> > ,still fails with the ActiveMQ.
> >>> >
> >>> > [1] http://activemq.apache.org/amqp.html
> >>> >
> >>> > Thanks,
> >>> > Gayan
> >>> >
> >>> >
> >>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow <ch...@gmail.com>
> >>> > wrote:
> >>> >>
> >>> >> Is the issue because we currently have a mix of JMS/AMQP/Jndi? If we
> >>> >> had a
> >>> >> pure AMQP approach would these problems go away?  AFAIK, one of the
> >>> >> drivers
> >>> >> for AMQP was interoperability with all languages, rather than jms
> >>> >> which is
> >>> >> focused on Java.
> >>> >>
> >>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne" <ga...@wso2.com> wrote:
> >>> >>>
> >>> >>> Hi All,
> >>> >>>
> >>> >>> With related to the python cartridge agent , Dinesh and myself do
> >>> >>> some
> >>> >>> research related to the Apache ActiveMQ connectivity using the
> python
> >>> >>> client.
> >>> >>>
> >>> >>> Following our findings on this.
> >>> >>>
> >>> >>> AMQP
> >>> >>>
> >>> >>> AFAWU we need to have  pyactivemq , which is a Python wrapper for
> the
> >>> >>> ActiveMQ C++ Library,[1] But we won't be able to use this module as
> >>> >>> it is
> >>> >>> platform dependent.
> >>> >>> Also we checked the following client libraries as well(those are
> >>> >>> recommended with the RabbitMQ)
> >>> >>> [3] py-amqplib
> >>> >>> [4] txAMQP
> >>> >>> [5] pika
> >>> >>> [6] Carrot (has copy right licence)
> >>> >>>
> >>> >>> But we were unable to connect Apache ActiveMQ with those as
> >>> >>> well.(Even
> >>> >>> through we can connect those with the RabbitMQ)
> >>> >>>
> >>> >>> STOMP[2]
> >>> >>>
> >>> >>> With the STOMP protocol , We were able to connect Apache ActiveMQ
> by
> >>> >>> using the stomp module.[7]
> >>> >>>
> >>> >>>
> >>> >>> As a summary,
> >>> >>> It seems like we need to use STOMP to connect ActiveMQ. But still,
> >>> >>> WSO2
> >>> >>> message broker is not supporting STOMP protocol.
> >>> >>> IMO Shall we used the hybrid model for connect to the message
> queues.
> >>> >>> Such that , we can use STOMP to connect the ActiveMQ and AMQP to
> >>> >>> connect
> >>> >>> WSO2 MB. WDYT?
> >>> >>> With txAMQP[4] we were able to connect WSO2 MB using the qpid amqp
> >>> >>> specifications.
> >>> >>> Please share your suggestions and thoughts on this.
> >>> >>>
> >>> >>>
> >>> >>> [1] http://activemq.apache.org/python.html
> >>> >>> [2] http://activemq.apache.org/stomp.html
> >>> >>> [3] http://barryp.org/software/py-amqplib/
> >>> >>> [4] https://launchpad.net/txamqp
> >>> >>> [5] https://github.com/pika/pika
> >>> >>> [6] https://pypi.python.org/pypi/carrot/
> >>> >>> [7] https://github.com/jasonrbriggs/stomp.py
> >>> >>>
> >>> >>> @Dinesh , Please add If I missed anything here.
> >>> >>>
> >>> >>>
> >>> >>>
> >>> >>> Thanks,
> >>> >>> Gayan
> >>> >>>
> >>> >>>
> >>> >>> --
> >>> >>>
> >>> >>>
> >>> >>> Gayan Gunarathne
> >>> >>> Technical Lead
> >>> >>> WSO2 Inc. (http://wso2.com)
> >>> >>> email  : gayang@wso2.com  | mobile : +94 766819985
> >>> >>>
> >>> >
> >>> >
> >>> >
> >>> >
> >>> > --
> >>> > Best Regards,
> >>> >
> >>> > Gayan Gunarathne
> >>> > Technical Lead
> >>> > WSO2 Inc. (http://wso2.com)
> >>> > email  : gayang@wso2.com  | mobile : +94 766819985
> >>> >
> >>
> >>
> >>
> >>
> >> --
> >> Best Regards,
> >>
> >> Gayan Gunarathne
> >> Technical Lead
> >> WSO2 Inc. (http://wso2.com)
> >> email  : gayang@wso2.com  | mobile : +94 766819985
> >>
> >
> >
> >
> >
> > --
> > Best Regards,
> >
> > Gayan Gunarathne
> > Technical Lead
> > WSO2 Inc. (http://wso2.com)
> > email  : gayang@wso2.com  | mobile : +94 766819985
> >
>



-- 
Best Regards,

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gayang@wso2.com  | mobile : +94 766819985

Re: Stratos Python Cartridge Agent

Posted by chris snow <ch...@gmail.com>.
Thanks Gayan!

What errors were you hitting?  The few clients I tried give me the error [1].

It seems some of f the python amqp libraries don't support version 1.0 of AMQP?

---
[1] http://activemq.2283324.n4.nabble.com/AMQP-version-AMQP-header-mismatch-value-0-expecting-1-td4663920.html

On Tue, Aug 26, 2014 at 6:03 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
> Hi Chirs,
>
> Please find the python client library samples which we are tested.
> https://github.com/gayangunarathne/amqp_python_libraries
>
> Thanks,
> Gayan
>
>
> On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne <ga...@wso2.com> wrote:
>>
>> Hi Chris,
>>
>> Yeah. We looked that qpid messaging as well.For that we need that qpid
>> proton library .Is n't?
>> AFAIR it is based on CMake and It requires java also[1].
>>
>> Also we will share with you the samples we try with the amqp clients.
>>
>>
>> [1]http://svn.apache.org/repos/asf/qpid/proton/trunk/README
>>
>>
>> Thanks,
>> Gayan
>>
>>
>> On Mon, Aug 25, 2014 at 7:33 PM, chris snow <ch...@gmail.com> wrote:
>>>
>>> hi Gayan,
>>>
>>> What are the issues that you received from the various AMQP libraries?
>>> Do you have a code repo that I can take a look at to try and replicate
>>> the errors?
>>> Did you investigate qpid [1]?
>>>
>>> Many thanks
>>>
>>> Chris
>>>
>>> ---
>>> [1]
>>> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
>>>
>>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne <ga...@wso2.com>
>>> wrote:
>>> > Hi Chris,
>>> >
>>> > We try to replace our java cartridge agent with the python as after
>>> > that we
>>> > can remove the java dependency from the cartridge itself.I guess this
>>> > is
>>> > also vital for the Docker support too.
>>> >
>>> > In Apache ActiveMQ site also AMQP support is based on the JMS/AMQP[1].
>>> > I
>>> > guess message broker implementation will be different from one MQ to
>>> > other
>>> > as some python client which able to connect with RabbitMQ successfully
>>> > ,still fails with the ActiveMQ.
>>> >
>>> > [1] http://activemq.apache.org/amqp.html
>>> >
>>> > Thanks,
>>> > Gayan
>>> >
>>> >
>>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow <ch...@gmail.com>
>>> > wrote:
>>> >>
>>> >> Is the issue because we currently have a mix of JMS/AMQP/Jndi? If we
>>> >> had a
>>> >> pure AMQP approach would these problems go away?  AFAIK, one of the
>>> >> drivers
>>> >> for AMQP was interoperability with all languages, rather than jms
>>> >> which is
>>> >> focused on Java.
>>> >>
>>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne" <ga...@wso2.com> wrote:
>>> >>>
>>> >>> Hi All,
>>> >>>
>>> >>> With related to the python cartridge agent , Dinesh and myself do
>>> >>> some
>>> >>> research related to the Apache ActiveMQ connectivity using the python
>>> >>> client.
>>> >>>
>>> >>> Following our findings on this.
>>> >>>
>>> >>> AMQP
>>> >>>
>>> >>> AFAWU we need to have  pyactivemq , which is a Python wrapper for the
>>> >>> ActiveMQ C++ Library,[1] But we won't be able to use this module as
>>> >>> it is
>>> >>> platform dependent.
>>> >>> Also we checked the following client libraries as well(those are
>>> >>> recommended with the RabbitMQ)
>>> >>> [3] py-amqplib
>>> >>> [4] txAMQP
>>> >>> [5] pika
>>> >>> [6] Carrot (has copy right licence)
>>> >>>
>>> >>> But we were unable to connect Apache ActiveMQ with those as
>>> >>> well.(Even
>>> >>> through we can connect those with the RabbitMQ)
>>> >>>
>>> >>> STOMP[2]
>>> >>>
>>> >>> With the STOMP protocol , We were able to connect Apache ActiveMQ by
>>> >>> using the stomp module.[7]
>>> >>>
>>> >>>
>>> >>> As a summary,
>>> >>> It seems like we need to use STOMP to connect ActiveMQ. But still,
>>> >>> WSO2
>>> >>> message broker is not supporting STOMP protocol.
>>> >>> IMO Shall we used the hybrid model for connect to the message queues.
>>> >>> Such that , we can use STOMP to connect the ActiveMQ and AMQP to
>>> >>> connect
>>> >>> WSO2 MB. WDYT?
>>> >>> With txAMQP[4] we were able to connect WSO2 MB using the qpid amqp
>>> >>> specifications.
>>> >>> Please share your suggestions and thoughts on this.
>>> >>>
>>> >>>
>>> >>> [1] http://activemq.apache.org/python.html
>>> >>> [2] http://activemq.apache.org/stomp.html
>>> >>> [3] http://barryp.org/software/py-amqplib/
>>> >>> [4] https://launchpad.net/txamqp
>>> >>> [5] https://github.com/pika/pika
>>> >>> [6] https://pypi.python.org/pypi/carrot/
>>> >>> [7] https://github.com/jasonrbriggs/stomp.py
>>> >>>
>>> >>> @Dinesh , Please add If I missed anything here.
>>> >>>
>>> >>>
>>> >>>
>>> >>> Thanks,
>>> >>> Gayan
>>> >>>
>>> >>>
>>> >>> --
>>> >>>
>>> >>>
>>> >>> Gayan Gunarathne
>>> >>> Technical Lead
>>> >>> WSO2 Inc. (http://wso2.com)
>>> >>> email  : gayang@wso2.com  | mobile : +94 766819985
>>> >>>
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > Best Regards,
>>> >
>>> > Gayan Gunarathne
>>> > Technical Lead
>>> > WSO2 Inc. (http://wso2.com)
>>> > email  : gayang@wso2.com  | mobile : +94 766819985
>>> >
>>
>>
>>
>>
>> --
>> Best Regards,
>>
>> Gayan Gunarathne
>> Technical Lead
>> WSO2 Inc. (http://wso2.com)
>> email  : gayang@wso2.com  | mobile : +94 766819985
>>
>
>
>
>
> --
> Best Regards,
>
> Gayan Gunarathne
> Technical Lead
> WSO2 Inc. (http://wso2.com)
> email  : gayang@wso2.com  | mobile : +94 766819985
>

Re: Stratos Python Cartridge Agent

Posted by Gayan Gunarathne <ga...@wso2.com>.
Hi Chirs,

Please find the python client library samples which we are tested.
https://github.com/gayangunarathne/amqp_python_libraries

Thanks,
Gayan


On Tue, Aug 26, 2014 at 9:56 AM, Gayan Gunarathne <ga...@wso2.com> wrote:

> Hi Chris,
>
> Yeah. We looked that qpid messaging as well.For that we need that qpid
> proton library .Is n't?
> AFAIR it is based on CMake and It requires java also[1].
>
> Also we will share with you the samples we try with the amqp clients.
>
>
> [1]http://svn.apache.org/repos/asf/qpid/proton/trunk/README
>
>
> Thanks,
> Gayan
>
>
> On Mon, Aug 25, 2014 at 7:33 PM, chris snow <ch...@gmail.com> wrote:
>
>> hi Gayan,
>>
>> What are the issues that you received from the various AMQP libraries?
>> Do you have a code repo that I can take a look at to try and replicate
>> the errors?
>> Did you investigate qpid [1]?
>>
>> Many thanks
>>
>> Chris
>>
>> ---
>> [1]
>> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
>>
>> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne <ga...@wso2.com>
>> wrote:
>> > Hi Chris,
>> >
>> > We try to replace our java cartridge agent with the python as after
>> that we
>> > can remove the java dependency from the cartridge itself.I guess this is
>> > also vital for the Docker support too.
>> >
>> > In Apache ActiveMQ site also AMQP support is based on the JMS/AMQP[1]. I
>> > guess message broker implementation will be different from one MQ to
>> other
>> > as some python client which able to connect with RabbitMQ successfully
>> > ,still fails with the ActiveMQ.
>> >
>> > [1] http://activemq.apache.org/amqp.html
>> >
>> > Thanks,
>> > Gayan
>> >
>> >
>> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow <ch...@gmail.com>
>> wrote:
>> >>
>> >> Is the issue because we currently have a mix of JMS/AMQP/Jndi? If we
>> had a
>> >> pure AMQP approach would these problems go away?  AFAIK, one of the
>> drivers
>> >> for AMQP was interoperability with all languages, rather than jms
>> which is
>> >> focused on Java.
>> >>
>> >> On 25 Aug 2014 12:49, "Gayan Gunarathne" <ga...@wso2.com> wrote:
>> >>>
>> >>> Hi All,
>> >>>
>> >>> With related to the python cartridge agent , Dinesh and myself do some
>> >>> research related to the Apache ActiveMQ connectivity using the python
>> >>> client.
>> >>>
>> >>> Following our findings on this.
>> >>>
>> >>> AMQP
>> >>>
>> >>> AFAWU we need to have  pyactivemq , which is a Python wrapper for the
>> >>> ActiveMQ C++ Library,[1] But we won't be able to use this module as
>> it is
>> >>> platform dependent.
>> >>> Also we checked the following client libraries as well(those are
>> >>> recommended with the RabbitMQ)
>> >>> [3] py-amqplib
>> >>> [4] txAMQP
>> >>> [5] pika
>> >>> [6] Carrot (has copy right licence)
>> >>>
>> >>> But we were unable to connect Apache ActiveMQ with those as well.(Even
>> >>> through we can connect those with the RabbitMQ)
>> >>>
>> >>> STOMP[2]
>> >>>
>> >>> With the STOMP protocol , We were able to connect Apache ActiveMQ by
>> >>> using the stomp module.[7]
>> >>>
>> >>>
>> >>> As a summary,
>> >>> It seems like we need to use STOMP to connect ActiveMQ. But still,
>> WSO2
>> >>> message broker is not supporting STOMP protocol.
>> >>> IMO Shall we used the hybrid model for connect to the message queues.
>> >>> Such that , we can use STOMP to connect the ActiveMQ and AMQP to
>> connect
>> >>> WSO2 MB. WDYT?
>> >>> With txAMQP[4] we were able to connect WSO2 MB using the qpid amqp
>> >>> specifications.
>> >>> Please share your suggestions and thoughts on this.
>> >>>
>> >>>
>> >>> [1] http://activemq.apache.org/python.html
>> >>> [2] http://activemq.apache.org/stomp.html
>> >>> [3] http://barryp.org/software/py-amqplib/
>> >>> [4] https://launchpad.net/txamqp
>> >>> [5] https://github.com/pika/pika
>> >>> [6] https://pypi.python.org/pypi/carrot/
>> >>> [7] https://github.com/jasonrbriggs/stomp.py
>> >>>
>> >>> @Dinesh , Please add If I missed anything here.
>> >>>
>> >>>
>> >>>
>> >>> Thanks,
>> >>> Gayan
>> >>>
>> >>>
>> >>> --
>> >>>
>> >>>
>> >>> Gayan Gunarathne
>> >>> Technical Lead
>> >>> WSO2 Inc. (http://wso2.com)
>> >>> email  : gayang@wso2.com  | mobile : +94 766819985
>> >>>
>> >
>> >
>> >
>> >
>> > --
>> > Best Regards,
>> >
>> > Gayan Gunarathne
>> > Technical Lead
>> > WSO2 Inc. (http://wso2.com)
>> > email  : gayang@wso2.com  | mobile : +94 766819985
>> >
>>
>
>
>
> --
> Best Regards,
>
> Gayan Gunarathne
> Technical Lead
> WSO2 Inc. (http://wso2.com)
> email  : gayang@wso2.com  | mobile : +94 766819985
>
>



-- 
Best Regards,

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gayang@wso2.com  | mobile : +94 766819985

Re: Stratos Python Cartridge Agent

Posted by Gayan Gunarathne <ga...@wso2.com>.
Hi Chris,

Yeah. We looked that qpid messaging as well.For that we need that qpid
proton library .Is n't?
AFAIR it is based on CMake and It requires java also[1].

Also we will share with you the samples we try with the amqp clients.


[1]http://svn.apache.org/repos/asf/qpid/proton/trunk/README


Thanks,
Gayan


On Mon, Aug 25, 2014 at 7:33 PM, chris snow <ch...@gmail.com> wrote:

> hi Gayan,
>
> What are the issues that you received from the various AMQP libraries?
> Do you have a code repo that I can take a look at to try and replicate
> the errors?
> Did you investigate qpid [1]?
>
> Many thanks
>
> Chris
>
> ---
> [1]
> http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html
>
> On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne <ga...@wso2.com> wrote:
> > Hi Chris,
> >
> > We try to replace our java cartridge agent with the python as after that
> we
> > can remove the java dependency from the cartridge itself.I guess this is
> > also vital for the Docker support too.
> >
> > In Apache ActiveMQ site also AMQP support is based on the JMS/AMQP[1]. I
> > guess message broker implementation will be different from one MQ to
> other
> > as some python client which able to connect with RabbitMQ successfully
> > ,still fails with the ActiveMQ.
> >
> > [1] http://activemq.apache.org/amqp.html
> >
> > Thanks,
> > Gayan
> >
> >
> > On Mon, Aug 25, 2014 at 5:55 PM, chris snow <ch...@gmail.com> wrote:
> >>
> >> Is the issue because we currently have a mix of JMS/AMQP/Jndi? If we
> had a
> >> pure AMQP approach would these problems go away?  AFAIK, one of the
> drivers
> >> for AMQP was interoperability with all languages, rather than jms which
> is
> >> focused on Java.
> >>
> >> On 25 Aug 2014 12:49, "Gayan Gunarathne" <ga...@wso2.com> wrote:
> >>>
> >>> Hi All,
> >>>
> >>> With related to the python cartridge agent , Dinesh and myself do some
> >>> research related to the Apache ActiveMQ connectivity using the python
> >>> client.
> >>>
> >>> Following our findings on this.
> >>>
> >>> AMQP
> >>>
> >>> AFAWU we need to have  pyactivemq , which is a Python wrapper for the
> >>> ActiveMQ C++ Library,[1] But we won't be able to use this module as it
> is
> >>> platform dependent.
> >>> Also we checked the following client libraries as well(those are
> >>> recommended with the RabbitMQ)
> >>> [3] py-amqplib
> >>> [4] txAMQP
> >>> [5] pika
> >>> [6] Carrot (has copy right licence)
> >>>
> >>> But we were unable to connect Apache ActiveMQ with those as well.(Even
> >>> through we can connect those with the RabbitMQ)
> >>>
> >>> STOMP[2]
> >>>
> >>> With the STOMP protocol , We were able to connect Apache ActiveMQ by
> >>> using the stomp module.[7]
> >>>
> >>>
> >>> As a summary,
> >>> It seems like we need to use STOMP to connect ActiveMQ. But still, WSO2
> >>> message broker is not supporting STOMP protocol.
> >>> IMO Shall we used the hybrid model for connect to the message queues.
> >>> Such that , we can use STOMP to connect the ActiveMQ and AMQP to
> connect
> >>> WSO2 MB. WDYT?
> >>> With txAMQP[4] we were able to connect WSO2 MB using the qpid amqp
> >>> specifications.
> >>> Please share your suggestions and thoughts on this.
> >>>
> >>>
> >>> [1] http://activemq.apache.org/python.html
> >>> [2] http://activemq.apache.org/stomp.html
> >>> [3] http://barryp.org/software/py-amqplib/
> >>> [4] https://launchpad.net/txamqp
> >>> [5] https://github.com/pika/pika
> >>> [6] https://pypi.python.org/pypi/carrot/
> >>> [7] https://github.com/jasonrbriggs/stomp.py
> >>>
> >>> @Dinesh , Please add If I missed anything here.
> >>>
> >>>
> >>>
> >>> Thanks,
> >>> Gayan
> >>>
> >>>
> >>> --
> >>>
> >>>
> >>> Gayan Gunarathne
> >>> Technical Lead
> >>> WSO2 Inc. (http://wso2.com)
> >>> email  : gayang@wso2.com  | mobile : +94 766819985
> >>>
> >
> >
> >
> >
> > --
> > Best Regards,
> >
> > Gayan Gunarathne
> > Technical Lead
> > WSO2 Inc. (http://wso2.com)
> > email  : gayang@wso2.com  | mobile : +94 766819985
> >
>



-- 
Best Regards,

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gayang@wso2.com  | mobile : +94 766819985

Re: Stratos Python Cartridge Agent

Posted by chris snow <ch...@gmail.com>.
hi Gayan,

What are the issues that you received from the various AMQP libraries?
Do you have a code repo that I can take a look at to try and replicate
the errors?
Did you investigate qpid [1]?

Many thanks

Chris

---
[1] http://qpid.apache.org/releases/qpid-0.28/messaging-api/python/examples/hello.html

On Mon, Aug 25, 2014 at 2:16 PM, Gayan Gunarathne <ga...@wso2.com> wrote:
> Hi Chris,
>
> We try to replace our java cartridge agent with the python as after that we
> can remove the java dependency from the cartridge itself.I guess this is
> also vital for the Docker support too.
>
> In Apache ActiveMQ site also AMQP support is based on the JMS/AMQP[1]. I
> guess message broker implementation will be different from one MQ to other
> as some python client which able to connect with RabbitMQ successfully
> ,still fails with the ActiveMQ.
>
> [1] http://activemq.apache.org/amqp.html
>
> Thanks,
> Gayan
>
>
> On Mon, Aug 25, 2014 at 5:55 PM, chris snow <ch...@gmail.com> wrote:
>>
>> Is the issue because we currently have a mix of JMS/AMQP/Jndi? If we had a
>> pure AMQP approach would these problems go away?  AFAIK, one of the drivers
>> for AMQP was interoperability with all languages, rather than jms which is
>> focused on Java.
>>
>> On 25 Aug 2014 12:49, "Gayan Gunarathne" <ga...@wso2.com> wrote:
>>>
>>> Hi All,
>>>
>>> With related to the python cartridge agent , Dinesh and myself do some
>>> research related to the Apache ActiveMQ connectivity using the python
>>> client.
>>>
>>> Following our findings on this.
>>>
>>> AMQP
>>>
>>> AFAWU we need to have  pyactivemq , which is a Python wrapper for the
>>> ActiveMQ C++ Library,[1] But we won't be able to use this module as it is
>>> platform dependent.
>>> Also we checked the following client libraries as well(those are
>>> recommended with the RabbitMQ)
>>> [3] py-amqplib
>>> [4] txAMQP
>>> [5] pika
>>> [6] Carrot (has copy right licence)
>>>
>>> But we were unable to connect Apache ActiveMQ with those as well.(Even
>>> through we can connect those with the RabbitMQ)
>>>
>>> STOMP[2]
>>>
>>> With the STOMP protocol , We were able to connect Apache ActiveMQ by
>>> using the stomp module.[7]
>>>
>>>
>>> As a summary,
>>> It seems like we need to use STOMP to connect ActiveMQ. But still, WSO2
>>> message broker is not supporting STOMP protocol.
>>> IMO Shall we used the hybrid model for connect to the message queues.
>>> Such that , we can use STOMP to connect the ActiveMQ and AMQP to connect
>>> WSO2 MB. WDYT?
>>> With txAMQP[4] we were able to connect WSO2 MB using the qpid amqp
>>> specifications.
>>> Please share your suggestions and thoughts on this.
>>>
>>>
>>> [1] http://activemq.apache.org/python.html
>>> [2] http://activemq.apache.org/stomp.html
>>> [3] http://barryp.org/software/py-amqplib/
>>> [4] https://launchpad.net/txamqp
>>> [5] https://github.com/pika/pika
>>> [6] https://pypi.python.org/pypi/carrot/
>>> [7] https://github.com/jasonrbriggs/stomp.py
>>>
>>> @Dinesh , Please add If I missed anything here.
>>>
>>>
>>>
>>> Thanks,
>>> Gayan
>>>
>>>
>>> --
>>>
>>>
>>> Gayan Gunarathne
>>> Technical Lead
>>> WSO2 Inc. (http://wso2.com)
>>> email  : gayang@wso2.com  | mobile : +94 766819985
>>>
>
>
>
>
> --
> Best Regards,
>
> Gayan Gunarathne
> Technical Lead
> WSO2 Inc. (http://wso2.com)
> email  : gayang@wso2.com  | mobile : +94 766819985
>

Re: Stratos Python Cartridge Agent

Posted by Gayan Gunarathne <ga...@wso2.com>.
Hi Chris,

We try to replace our java cartridge agent with the python as after that we
can remove the java dependency from the cartridge itself.I guess this is
also vital for the Docker support too.

In Apache ActiveMQ site also AMQP support is based on the JMS/AMQP[1]. I
guess message broker implementation will be different from one MQ to other
as some python client which able to connect with RabbitMQ successfully
,still fails with the ActiveMQ.

[1] http://activemq.apache.org/amqp.html

Thanks,
Gayan


On Mon, Aug 25, 2014 at 5:55 PM, chris snow <ch...@gmail.com> wrote:

> Is the issue because we currently have a mix of JMS/AMQP/Jndi? If we had a
> pure AMQP approach would these problems go away?  AFAIK, one of the drivers
> for AMQP was interoperability with all languages, rather than jms which is
> focused on Java.
> On 25 Aug 2014 12:49, "Gayan Gunarathne" <ga...@wso2.com> wrote:
>
>> Hi All,
>>
>> With related to the python cartridge agent , Dinesh and myself do some
>> research related to the Apache ActiveMQ connectivity using the python
>> client.
>>
>> Following our findings on this.
>>
>> *AMQP*
>>
>> AFAWU we need to have  pyactivemq , which is a Python wrapper for the
>> ActiveMQ C++ Library,[1] But we won't be able to use this module as it is
>> platform dependent.
>> Also we checked the following client libraries as well(those
>> are recommended with the RabbitMQ)
>> [3] py-amqplib
>> [4] txAMQP
>> [5] pika
>> [6] Carrot (has copy right licence)
>>
>> But we were unable to connect Apache ActiveMQ with those as well.(Even
>> through we can connect those with the RabbitMQ)
>>
>> *STOMP[2]*
>>
>> With the STOMP protocol , We were able to connect Apache ActiveMQ by
>> using the stomp module.[7]
>>
>>
>> As a summary,
>> It seems like we need to use STOMP to connect ActiveMQ. But still, WSO2
>> message broker is not supporting STOMP protocol.
>> IMO Shall we used the hybrid model for connect to the message queues.
>> Such that , we can use STOMP to connect the ActiveMQ and AMQP to connect
>> WSO2 MB. WDYT?
>> With txAMQP[4] we were able to connect WSO2 MB using the qpid
>> amqp specifications.
>> Please share your suggestions and thoughts on this.
>>
>>
>> [1] http://activemq.apache.org/python.html
>> [2] http://activemq.apache.org/stomp.html
>> [3] http://barryp.org/software/py-amqplib/
>> [4] https://launchpad.net/txamqp
>> [5] https://github.com/pika/pika
>> [6] https://pypi.python.org/pypi/carrot/
>> [7] https://github.com/jasonrbriggs/stomp.py
>>
>> @Dinesh , Please add If I missed anything here.
>>
>>
>>
>> Thanks,
>> Gayan
>>
>>
>> --
>>
>>
>> Gayan Gunarathne
>> Technical Lead
>> WSO2 Inc. (http://wso2.com)
>> email  : gayang@wso2.com  | mobile : +94 766819985
>>
>>
>


-- 
Best Regards,

Gayan Gunarathne
Technical Lead
WSO2 Inc. (http://wso2.com)
email  : gayang@wso2.com  | mobile : +94 766819985

Re: Stratos Python Cartridge Agent

Posted by chris snow <ch...@gmail.com>.
Is the issue because we currently have a mix of JMS/AMQP/Jndi? If we had a
pure AMQP approach would these problems go away?  AFAIK, one of the drivers
for AMQP was interoperability with all languages, rather than jms which is
focused on Java.
On 25 Aug 2014 12:49, "Gayan Gunarathne" <ga...@wso2.com> wrote:

> Hi All,
>
> With related to the python cartridge agent , Dinesh and myself do some
> research related to the Apache ActiveMQ connectivity using the python
> client.
>
> Following our findings on this.
>
> *AMQP*
>
> AFAWU we need to have  pyactivemq , which is a Python wrapper for the
> ActiveMQ C++ Library,[1] But we won't be able to use this module as it is
> platform dependent.
> Also we checked the following client libraries as well(those
> are recommended with the RabbitMQ)
> [3] py-amqplib
> [4] txAMQP
> [5] pika
> [6] Carrot (has copy right licence)
>
> But we were unable to connect Apache ActiveMQ with those as well.(Even
> through we can connect those with the RabbitMQ)
>
> *STOMP[2]*
>
> With the STOMP protocol , We were able to connect Apache ActiveMQ by using
> the stomp module.[7]
>
>
> As a summary,
> It seems like we need to use STOMP to connect ActiveMQ. But still, WSO2
> message broker is not supporting STOMP protocol.
> IMO Shall we used the hybrid model for connect to the message queues. Such
> that , we can use STOMP to connect the ActiveMQ and AMQP to connect WSO2
> MB. WDYT?
> With txAMQP[4] we were able to connect WSO2 MB using the qpid
> amqp specifications.
> Please share your suggestions and thoughts on this.
>
>
> [1] http://activemq.apache.org/python.html
> [2] http://activemq.apache.org/stomp.html
> [3] http://barryp.org/software/py-amqplib/
> [4] https://launchpad.net/txamqp
> [5] https://github.com/pika/pika
> [6] https://pypi.python.org/pypi/carrot/
> [7] https://github.com/jasonrbriggs/stomp.py
>
> @Dinesh , Please add If I missed anything here.
>
>
>
> Thanks,
> Gayan
>
>
> --
>
>
> Gayan Gunarathne
> Technical Lead
> WSO2 Inc. (http://wso2.com)
> email  : gayang@wso2.com  | mobile : +94 766819985
>
>