You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@qpid.apache.org by Clive Lilley <cl...@ckjltd.co.uk> on 2010/09/24 18:54:14 UTC

QPID and RESTful services

   Hi,

Been using QPID for a while and it is performing very well .

My client has asked me to look at how easy it might be to produce a 
RESTful interface to QPID, so that data can be sent/received using URL's 
and the http PUT/GET operations.

Has anyone tried this before with QPID?

Clive.

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


Re: QPID and RESTful services

Posted by Carl Trieloff <cc...@redhat.com>.
On 09/24/2010 02:53 PM, Clive Lilley wrote:
>  On 24/09/2010 18:05, Lahiru Gunathilake wrote:
>> Hi Clive,
>>
>> I am not sure about this feature in Qpid.
>>
>> You can simply use an ESB infront of Qpid and configure ESB to send 
>> the message to Qpid instance .. so you have to directly talk to the 
>> proxy in your ESB When you are talking to the ESB instance you can 
>> invoke as you like (SOAP,REST,JMS any transport).
>>
>> Lahiru
>>
>> On Fri, Sep 24, 2010 at 10:24 PM, Clive Lilley <clive@ckjltd.co.uk 
>> <ma...@ckjltd.co.uk>> wrote:
>>
>>      Hi,
>>
>>     Been using QPID for a while and it is performing very well .
>>
>>     My client has asked me to look at how easy it might be to produce
>>     a RESTful interface to QPID, so that data can be sent/received
>>     using URL's and the http PUT/GET operations.
>>
>>     Has anyone tried this before with QPID?
>>
>>     Clive.
>>
>>     
>> ---------------------------------------------------------------------
>>     Apache Qpid - AMQP Messaging Implementation
>>     Project: http://qpid.apache.org
>>     Use/Interact: mailto:users-subscribe@qpid.apache.org
>> <ma...@qpid.apache.org>
>>
>>
> Thanks for the information.
>
> I was more thinking of producing an additional module for QPID (much 
> like the message store ) that when loaded exposed the exchanges and 
> queues as a RESTful interface and was basically fully integrated into 
> the QPID broker. I could also then use QMF for the management and 
> reporting.  The C++ POCO libraries have a good lightweight http/https 
> daemon that I was thinking of using with an additional layer that just 
> mapped between the broker internals and the http GET/POST/PUT commands.
>
> The JAVA Broker might be a better starting point but my client is keen 
> to stick with C++.
>
> Clive.
>

I would also be interested if you did this, I have a use case for this too.

Carl.



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


Re: QPID and RESTful services

Posted by Clive Lilley <cl...@ckjltd.co.uk>.
  On 24/09/2010 18:05, Lahiru Gunathilake wrote:
> Hi Clive,
>
> I am not sure about this feature in Qpid.
>
> You can simply use an ESB infront of Qpid and configure ESB to send 
> the message to Qpid instance .. so you have to directly talk to the 
> proxy in your ESB When you are talking to the ESB instance you can 
> invoke as you like (SOAP,REST,JMS any transport).
>
> Lahiru
>
> On Fri, Sep 24, 2010 at 10:24 PM, Clive Lilley <clive@ckjltd.co.uk 
> <ma...@ckjltd.co.uk>> wrote:
>
>      Hi,
>
>     Been using QPID for a while and it is performing very well .
>
>     My client has asked me to look at how easy it might be to produce
>     a RESTful interface to QPID, so that data can be sent/received
>     using URL's and the http PUT/GET operations.
>
>     Has anyone tried this before with QPID?
>
>     Clive.
>
>     ---------------------------------------------------------------------
>     Apache Qpid - AMQP Messaging Implementation
>     Project: http://qpid.apache.org
>     Use/Interact: mailto:users-subscribe@qpid.apache.org
>     <ma...@qpid.apache.org>
>
>
Thanks for the information.

I was more thinking of producing an additional module for QPID (much 
like the message store ) that when loaded exposed the exchanges and 
queues as a RESTful interface and was basically fully integrated into 
the QPID broker. I could also then use QMF for the management and 
reporting.  The C++ POCO libraries have a good lightweight http/https 
daemon that I was thinking of using with an additional layer that just 
mapped between the broker internals and the http GET/POST/PUT commands.

The JAVA Broker might be a better starting point but my client is keen 
to stick with C++.

Clive.

Re: QPID and RESTful services

Posted by Lahiru Gunathilake <gl...@gmail.com>.
On Sat, Sep 25, 2010 at 12:33 AM, William Henry <wh...@redhat.com> wrote:

> I would think that an ESB might be a bit overkill here. There ought to be a
> lighter-weight solution.
>
+1, but if you have more and more requirements like this which is not
directly related to what we are doing in Qpid ESB would be a good solution
for the futuree.

Lahiru

>
> Also with the new API I think it might be easier to provide a REST
> "wrapper".  The URL might map pretty easily to a node and the REST semantics
> would sit nicely on top of sends and fetches. No?
>
> William
>
> ----- "Lahiru Gunathilake" <gl...@gmail.com> wrote:
>
> > Hi Clive,
> >
> > I am not sure about this feature in Qpid.
> >
> > You can simply use an ESB infront of Qpid and configure ESB to send
> > the
> > message to Qpid instance .. so you have to directly talk to the proxy
> > in
> > your ESB When you are talking to the ESB instance you can invoke as
> > you like
> > (SOAP,REST,JMS any transport).
> >
> > Lahiru
> >
> > On Fri, Sep 24, 2010 at 10:24 PM, Clive Lilley <cl...@ckjltd.co.uk>
> > wrote:
> >
> > >  Hi,
> > >
> > > Been using QPID for a while and it is performing very well .
> > >
> > > My client has asked me to look at how easy it might be to produce a
> > RESTful
> > > interface to QPID, so that data can be sent/received using URL's and
> > the
> > > http PUT/GET operations.
> > >
> > > Has anyone tried this before with QPID?
> > >
> > > Clive.
> > >
> > >
> > ---------------------------------------------------------------------
> > > Apache Qpid - AMQP Messaging Implementation
> > > Project:      http://qpid.apache.org
> > > Use/Interact: mailto:users-subscribe@qpid.apache.org
> > >
> > >
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>

Re: QPID and RESTful services

Posted by William Henry <wh...@redhat.com>.
I would think that an ESB might be a bit overkill here. There ought to be a lighter-weight solution.

Also with the new API I think it might be easier to provide a REST "wrapper".  The URL might map pretty easily to a node and the REST semantics would sit nicely on top of sends and fetches. No?

William
 
----- "Lahiru Gunathilake" <gl...@gmail.com> wrote:

> Hi Clive,
> 
> I am not sure about this feature in Qpid.
> 
> You can simply use an ESB infront of Qpid and configure ESB to send
> the
> message to Qpid instance .. so you have to directly talk to the proxy
> in
> your ESB When you are talking to the ESB instance you can invoke as
> you like
> (SOAP,REST,JMS any transport).
> 
> Lahiru
> 
> On Fri, Sep 24, 2010 at 10:24 PM, Clive Lilley <cl...@ckjltd.co.uk>
> wrote:
> 
> >  Hi,
> >
> > Been using QPID for a while and it is performing very well .
> >
> > My client has asked me to look at how easy it might be to produce a
> RESTful
> > interface to QPID, so that data can be sent/received using URL's and
> the
> > http PUT/GET operations.
> >
> > Has anyone tried this before with QPID?
> >
> > Clive.
> >
> >
> ---------------------------------------------------------------------
> > Apache Qpid - AMQP Messaging Implementation
> > Project:      http://qpid.apache.org
> > Use/Interact: mailto:users-subscribe@qpid.apache.org
> >
> >

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


Re: QPID and RESTful services

Posted by Lahiru Gunathilake <gl...@gmail.com>.
Hi Clive,

I am not sure about this feature in Qpid.

You can simply use an ESB infront of Qpid and configure ESB to send the
message to Qpid instance .. so you have to directly talk to the proxy in
your ESB When you are talking to the ESB instance you can invoke as you like
(SOAP,REST,JMS any transport).

Lahiru

On Fri, Sep 24, 2010 at 10:24 PM, Clive Lilley <cl...@ckjltd.co.uk> wrote:

>  Hi,
>
> Been using QPID for a while and it is performing very well .
>
> My client has asked me to look at how easy it might be to produce a RESTful
> interface to QPID, so that data can be sent/received using URL's and the
> http PUT/GET operations.
>
> Has anyone tried this before with QPID?
>
> Clive.
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:users-subscribe@qpid.apache.org
>
>