I'd also be curious to hear more about "I don't want to use the tcp connection as it will be closed," since that seems to be driving your requirements but doesn't make sense to me as stated.
Tim On Oct 7, 2016 3:40 AM, "Martyn Taylor" <[email protected]> wrote: 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 <[email protected]> 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 <[email protected]> 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. > > >
