activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dejan Bosanac <de...@nighttale.net>
Subject Re: RESTful deletion/purging of queue in default config?
Date Tue, 20 Nov 2012 12:25:02 GMT
Unfortunately we don't have REST management API at the moment. I hope
we'll have something like Apollo style REST API soon. Until then you
can always easily hack a servlet like QueueBrowseServlet

https://fisheye6.atlassian.com/browse/activemq/trunk/activemq-web/src/main/java/org/apache/activemq/web/QueueBrowseServlet.java?hb=true

and configure it in the demo app

https://fisheye6.atlassian.com/browse/activemq/trunk/activemq-web-demo/src/main/webapp/WEB-INF/web.xml?r=1404998


Regards
--
Dejan Bosanac
----------------------
Red Hat, Inc.
FuseSource is now part of Red Hat
dbosanac@redhat.com
Twitter: @dejanb
Blog: http://sensatic.net
ActiveMQ in Action: http://www.manning.com/snyder/


On Tue, Nov 20, 2012 at 1:08 PM, James Green <james.mk.green@gmail.com> wrote:
> I'm in a PHP script.
>
>
> On 20 November 2012 12:06, Dejan Bosanac <dejan@nighttale.net> wrote:
>
>> If it doesn't have to be REST, you can use JMX and JConsole to achieve the
>> same.
>>
>> Regards
>> --
>> Dejan Bosanac
>> ----------------------
>> Red Hat, Inc.
>> FuseSource is now part of Red Hat
>> dbosanac@redhat.com
>> Twitter: @dejanb
>> Blog: http://sensatic.net
>> ActiveMQ in Action: http://www.manning.com/snyder/
>>
>>
>> On Tue, Nov 20, 2012 at 1:00 PM, James Green <james.mk.green@gmail.com>
>> wrote:
>> > From the console works but has a session "secret" guid which changes
>> every
>> > few minutes. I have also tried visiting the "Queues" link within CURL
>> then
>> > visiting the delete link (without a "secret" parameter) without luck.
>> >
>> >
>> > On 20 November 2012 11:51, Dejan Bosanac <dejan@nighttale.net> wrote:
>> >
>> >> Can you try purging it from the web console?
>> >>
>> >> Regards
>> >> --
>> >> Dejan Bosanac
>> >> ----------------------
>> >> Red Hat, Inc.
>> >> FuseSource is now part of Red Hat
>> >> dbosanac@redhat.com
>> >> Twitter: @dejanb
>> >> Blog: http://sensatic.net
>> >> ActiveMQ in Action: http://www.manning.com/snyder/
>> >>
>> >>
>> >> On Tue, Nov 20, 2012 at 12:36 PM, James Green <james.mk.green@gmail.com
>> >
>> >> wrote:
>> >> > Given my reading of that page, an HTTP DELETE on
>> >> > http://10.0.0.123:8161/queue/inbound should delete the inbound
>> queue...
>> >> >
>> >> > But I get a 404 instead. The page also talks about mapping but
>> there's no
>> >> > detail on that.
>> >> >
>> >> >
>> >> >
>> >> > On 20 November 2012 11:20, Gaurav Sharma <gaurav.cs.sharma@gmail.com>
>> >> wrote:
>> >> >
>> >> >> Yes, see http://activemq.apache.org/rest.html
>> >> >>
>> >> >> On Nov 20, 2012, at 3:03, James Green <james.mk.green@gmail.com>
>> wrote:
>> >> >>
>> >> >> > Trying to whip up a quick script to test performance.
>> >> >> >
>> >> >> > It would be really useful to call a URI to purge/delete the
queue
>> I'm
>> >> >> using
>> >> >> > between iterations without needing to manually drain it.
>> >> >> >
>> >> >> > Is there I URI pattern I can use?
>> >> >> >
>> >> >> > Thanks,
>> >> >> >
>> >> >> > James
>> >> >>
>> >>
>>

Mime
View raw message