Hi,

It sounds like your requirements are limiting what you can do.

Can you consider the websocket approach as well? Its still over HTTP, but
reduces the request/response pattern into a persistent connection.

http://activemq.apache.org/websockets.html

https://activemq.apache.org/artemis/docs/1.4.0/protocols-interoperability.html
if
you're using Artemis (see the section, Stomp over Web Sockers)

John

On Thu, Oct 6, 2016 at 12:07 PM ruiwp13 <rpn1...@gmail.com> wrote:

> Hello,
>
> I want to get messages from a topic through a get method. The problem is
> that I want to get those messages once they are sent to the topic meaning
> that I have to be constantly polling the method in order to get the
> messages. Is there any other way to have a message listener? I don't want
> to
> use the tcp connection as it will be closed. The REST API is the only thing
> that will be available to users.
>
> Best Regards
>
> Rui Neves
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/ActiveMQ-REST-message-listener-tp4717553.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Reply via email to