You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by arik103 <ar...@itkis.com> on 2010/06/09 06:10:39 UTC

REST and http

Hi,
There are many posts about this topic but I still can't get a clear answer
to the following:
     I am trying to use REST to post a message to a queue.
     Message broker is installed with all default options.
     I did see an example http://localhost:8161/demo/send.html

So the queston is: Do I need a separate app with a servlet to handle POSTing
messages to a queue?
Can this be done just with a message broker? something like
http://server:8161/queue/myQ?
Thanks,
-- 
View this message in context: http://old.nabble.com/REST-and-http-tp28825821p28825821.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: REST and http

Posted by Dejan Bosanac <de...@nighttale.net>.
Hi,

no, the REST API  is implemented using a separate servlet.

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Wed, Jun 9, 2010 at 4:08 PM, arik103 <ar...@itkis.com> wrote:

>
> But this is taking me back to the demo app. My question is can I use REST
> without setting up a separate app with a servlet.
>
>
> Dejan Bosanac wrote:
> >
> > Yeah,
> >
> > try something like
> >
> > curl -d "body=hello" http://localhost:8161/demo/message/myQ?type=queue
> >
> > Cheers
> > --
> > Dejan Bosanac - http://twitter.com/dejanb
> >
> > Open Source Integration - http://fusesource.com/
> > ActiveMQ in Action - http://www.manning.com/snyder/
> > Blog - http://www.nighttale.net
> >
> >
> > On Wed, Jun 9, 2010 at 6:10 AM, arik103 <ar...@itkis.com> wrote:
> >
> >>
> >> Hi,
> >> There are many posts about this topic but I still can't get a clear
> >> answer
> >> to the following:
> >>     I am trying to use REST to post a message to a queue.
> >>     Message broker is installed with all default options.
> >>     I did see an example http://localhost:8161/demo/send.html
> >>
> >> So the queston is: Do I need a separate app with a servlet to handle
> >> POSTing
> >> messages to a queue?
> >> Can this be done just with a message broker? something like
> >> http://server:8161/queue/myQ?
> >> Thanks,
> >> --
> >> View this message in context:
> >> http://old.nabble.com/REST-and-http-tp28825821p28825821.html
> >> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
> >>
> >>
> >
> >
> > -----
> > Dejan Bosanac
> >
> > Open Source Integration - http://fusesource.com/
> > ActiveMQ in Action - http://www.manning.com/snyder/
> > Blog - http://www.nighttale.net
> >
>
> --
> View this message in context:
> http://old.nabble.com/REST-and-http-tp28825821p28830896.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Re: REST and http

Posted by arik103 <ar...@itkis.com>.
But this is taking me back to the demo app. My question is can I use REST
without setting up a separate app with a servlet.


Dejan Bosanac wrote:
> 
> Yeah,
> 
> try something like
> 
> curl -d "body=hello" http://localhost:8161/demo/message/myQ?type=queue
> 
> Cheers
> --
> Dejan Bosanac - http://twitter.com/dejanb
> 
> Open Source Integration - http://fusesource.com/
> ActiveMQ in Action - http://www.manning.com/snyder/
> Blog - http://www.nighttale.net
> 
> 
> On Wed, Jun 9, 2010 at 6:10 AM, arik103 <ar...@itkis.com> wrote:
> 
>>
>> Hi,
>> There are many posts about this topic but I still can't get a clear
>> answer
>> to the following:
>>     I am trying to use REST to post a message to a queue.
>>     Message broker is installed with all default options.
>>     I did see an example http://localhost:8161/demo/send.html
>>
>> So the queston is: Do I need a separate app with a servlet to handle
>> POSTing
>> messages to a queue?
>> Can this be done just with a message broker? something like
>> http://server:8161/queue/myQ?
>> Thanks,
>> --
>> View this message in context:
>> http://old.nabble.com/REST-and-http-tp28825821p28825821.html
>> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>>
>>
> 
> 
> -----
> Dejan Bosanac
> 
> Open Source Integration - http://fusesource.com/
> ActiveMQ in Action - http://www.manning.com/snyder/
> Blog - http://www.nighttale.net
> 

-- 
View this message in context: http://old.nabble.com/REST-and-http-tp28825821p28830896.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: REST and http

Posted by Dejan Bosanac <de...@nighttale.net>.
Yeah,

try something like

curl -d "body=hello" http://localhost:8161/demo/message/myQ?type=queue

Cheers
--
Dejan Bosanac - http://twitter.com/dejanb

Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net


On Wed, Jun 9, 2010 at 6:10 AM, arik103 <ar...@itkis.com> wrote:

>
> Hi,
> There are many posts about this topic but I still can't get a clear answer
> to the following:
>     I am trying to use REST to post a message to a queue.
>     Message broker is installed with all default options.
>     I did see an example http://localhost:8161/demo/send.html
>
> So the queston is: Do I need a separate app with a servlet to handle
> POSTing
> messages to a queue?
> Can this be done just with a message broker? something like
> http://server:8161/queue/myQ?
> Thanks,
> --
> View this message in context:
> http://old.nabble.com/REST-and-http-tp28825821p28825821.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>