You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Christopher Pisz <ch...@gmail.com> on 2020/08/05 19:01:11 UTC

STOMP - How do I know if my ACK is working?

I have finished implementing ACKs in my STOMP over Websockets client and
want to test it out.

I can connect, subscribe, send, and receive messages, from ActiveMQ, but
the protocol doesn't have anything to tell me whether or not the ACK
worked. How can I check the ActiveMQ server and see if it is working vs not
working?

Re: STOMP - How do I know if my ACK is working?

Posted by Christopher Pisz <ch...@gmail.com>.
"verify by inspecting the management interface to check
on that queue stats."

It's that bit that I am after.
Management Interface? Can you point me to a doc for that?

On Wed, Aug 5, 2020 at 3:06 PM Timothy Bish <ta...@gmail.com> wrote:

> On 8/5/20 3:01 PM, Christopher Pisz wrote:
> > I have finished implementing ACKs in my STOMP over Websockets client and
> > want to test it out.
> >
> > I can connect, subscribe, send, and receive messages, from ActiveMQ, but
> > the protocol doesn't have anything to tell me whether or not the ACK
> > worked. How can I check the ActiveMQ server and see if it is working vs
> not
> > working?
> >
> STOMP Commands sent from the client can request a receipt frame to be
> returned which can tell if a specific frame was received by the remote.
> As to what it does with the command you have to trust that it honors
> your request or verify by inspecting the management interface to check
> on that queue stats.
>
> http://stomp.github.io/stomp-specification-1.2.html#Header_receipt
>
> --
> Tim Bish
>
>

Re: STOMP - How do I know if my ACK is working?

Posted by Timothy Bish <ta...@gmail.com>.
On 8/5/20 3:01 PM, Christopher Pisz wrote:
> I have finished implementing ACKs in my STOMP over Websockets client and
> want to test it out.
>
> I can connect, subscribe, send, and receive messages, from ActiveMQ, but
> the protocol doesn't have anything to tell me whether or not the ACK
> worked. How can I check the ActiveMQ server and see if it is working vs not
> working?
>
STOMP Commands sent from the client can request a receipt frame to be 
returned which can tell if a specific frame was received by the remote.  
As to what it does with the command you have to trust that it honors 
your request or verify by inspecting the management interface to check 
on that queue stats.

http://stomp.github.io/stomp-specification-1.2.html#Header_receipt

-- 
Tim Bish


Re: STOMP - How do I know if my ACK is working?

Posted by Justin Bertram <jb...@apache.org>.
Lots of options exist for getting management info. Assuming you're using
ActiveMQ Artemis I recommend you read this documentation [1]. This is
likely your simplest option.


Justin

[1]
http://activemq.apache.org/components/artemis/documentation/latest/management-console.html

On Wed, Aug 5, 2020 at 2:16 PM Christopher Pisz <ch...@gmail.com>
wrote:

> "can check the message count of the related queue on
> the broker."
>
> How do I do that? I am completely new.
>
> On Wed, Aug 5, 2020 at 3:12 PM Justin Bertram <jb...@apache.org> wrote:
>
> > Aside from the receipt option that Tim mentioned (which IMO is the
> > preferred option), you can check the message count of the related queue
> on
> > the broker. If the ack was successful then the message count should
> > decrease.
> >
> >
> > Justin
> >
> > On Wed, Aug 5, 2020 at 2:01 PM Christopher Pisz <
> christopherpisz@gmail.com
> > >
> > wrote:
> >
> > > I have finished implementing ACKs in my STOMP over Websockets client
> and
> > > want to test it out.
> > >
> > > I can connect, subscribe, send, and receive messages, from ActiveMQ,
> but
> > > the protocol doesn't have anything to tell me whether or not the ACK
> > > worked. How can I check the ActiveMQ server and see if it is working vs
> > not
> > > working?
> > >
> >
>

Re: STOMP - How do I know if my ACK is working?

Posted by Christopher Pisz <ch...@gmail.com>.
"can check the message count of the related queue on
the broker."

How do I do that? I am completely new.

On Wed, Aug 5, 2020 at 3:12 PM Justin Bertram <jb...@apache.org> wrote:

> Aside from the receipt option that Tim mentioned (which IMO is the
> preferred option), you can check the message count of the related queue on
> the broker. If the ack was successful then the message count should
> decrease.
>
>
> Justin
>
> On Wed, Aug 5, 2020 at 2:01 PM Christopher Pisz <christopherpisz@gmail.com
> >
> wrote:
>
> > I have finished implementing ACKs in my STOMP over Websockets client and
> > want to test it out.
> >
> > I can connect, subscribe, send, and receive messages, from ActiveMQ, but
> > the protocol doesn't have anything to tell me whether or not the ACK
> > worked. How can I check the ActiveMQ server and see if it is working vs
> not
> > working?
> >
>

Re: STOMP - How do I know if my ACK is working?

Posted by Justin Bertram <jb...@apache.org>.
Aside from the receipt option that Tim mentioned (which IMO is the
preferred option), you can check the message count of the related queue on
the broker. If the ack was successful then the message count should
decrease.


Justin

On Wed, Aug 5, 2020 at 2:01 PM Christopher Pisz <ch...@gmail.com>
wrote:

> I have finished implementing ACKs in my STOMP over Websockets client and
> want to test it out.
>
> I can connect, subscribe, send, and receive messages, from ActiveMQ, but
> the protocol doesn't have anything to tell me whether or not the ACK
> worked. How can I check the ActiveMQ server and see if it is working vs not
> working?
>