activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: Problems with configuring and using ActiveMQ with http
Date Fri, 10 Sep 2010 07:48:40 GMT
Hi Bob,

Take a look at this: http://activemq.apache.org/rest.html#REST-Consuming

the problem is that every GET request you send creates a new consumer.
You need to:

a) keep session between requests, as explained in the article above
b) or, use clientId param in your call, like

 http://localhost:8080/demo/message/abc?type=queue&clientId=test

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 Thu, Sep 9, 2010 at 11:38 PM, ChicagoBob123 <bobt@bobfx.com> wrote:
>
> Last note. I can post to this queue just fine via http. Its just dequeueing
> giving me a problem.
> Any ideas would be great.
>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> OK here is whats happening
> I queue 5 items
>
> I can read the queue twice. via http.
> http://localhost:8080/demo/message/abc?&type=queue
>
> Then I can not read the queue unless I kill and restart ActiveMQ.
> Mystery to me folks the error I get
>
> By checking here I can see an error.
>
> http://localhost:8080/admin/message.jsp?queues=abc
> No connection could be found for ID ID:GOODSERVER-4155-1284058239344-4:12
>
> Ideas? ?
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/configuring-and-using-ActiveMQ-with-http-tp2531794p2533618.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Mime
View raw message