The REST over HTTP pattern is request/response you send a GET request and
you "get" a response.  By it's very nature is going to require polling.
I'm not sure what your requirements are, but if you are trying to do this
stuff in a browser, then using Websockets as John suggested could get you
what you need.  Apache Artemis also supports MQTT and AMQP protocols over
Websockets.

Can you elaborate a little on what it is you're attempting to do?

On Fri, Oct 7, 2016 at 12:37 AM, John D. Ament <johndam...@apache.org>
wrote:

> 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