Consumer acknowledgement with REST API for ActiveMQ

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Consumer acknowledgement with REST API for ActiveMQ

n999999
Hello

I was looking at the REST API for ActiveMQ at
http://activemq.apache.org/rest.html.
I was wanting to use REST with the option for Consumer acknowledgement but
this page doesn't mention it.

Looking at http://activemq.apache.org/rest-protocols.html it does mention
that

"If you want to acknowledge messages you then

POST /ack/consumerId/messageId"

but is this supported?

https://activemq.apache.org/artemis/docs/1.0.0/rest.html seems to have more
to say about acknowledgement but we have ActiveMQ  5.15.0

Thanks for any advice...



--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html
Reply | Threaded
Open this post in threaded view
|

Re: Consumer acknowledgement with REST API for ActiveMQ

Tim Bain
In ActiveMQ 5.x, REST sessions are hard-coded to AUTO_ACKNOWLEDGE. See the
following code from org.apache.activemq.web.WebClient.java:

    protected Session createSession() throws JMSException {
        return getConnection().createSession(false,
Session.AUTO_ACKNOWLEDGE);
    }

Tim


On Fri, Apr 20, 2018 at 3:15 AM, n999999 <[hidden email]> wrote:

> Hello
>
> I was looking at the REST API for ActiveMQ at
> http://activemq.apache.org/rest.html.
> I was wanting to use REST with the option for Consumer acknowledgement but
> this page doesn't mention it.
>
> Looking at http://activemq.apache.org/rest-protocols.html it does mention
> that
>
> "If you want to acknowledge messages you then
>
> POST /ack/consumerId/messageId"
>
> but is this supported?
>
> https://activemq.apache.org/artemis/docs/1.0.0/rest.html seems to have
> more
> to say about acknowledgement but we have ActiveMQ  5.15.0
>
> Thanks for any advice...
>
>
>
> --
> Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-
> f2341805.html
>