Using JMS, is there any way to store messages on intermittently disconnected clients and forward them to a broker when a network is available?

試著忘記壹切 提交于 2019-12-06 11:42:21

You can embed an activeMQ broker into your application

http://activemq.apache.org/how-do-i-embed-a-broker-inside-a-connection.html

Then, I suppose (did not test) that you could use ActiveMQ features which allow you to dispatch messages accross a net of brokers, using the discovery of brokers feature,

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

or simply by adding a queue consumer server side, then dispatching through other brokers through this consumer.

Hope it helps.

The Glassfish Open Message Queue can be embedded (or run stand-alone) in version 4.4 (Support the ability for a broker to run "in process" with any client.). It is very light-weight, and will support other client languages over the STOMP protocol in version 4.4 - besides Java and C. - https://mq.dev.java.net/4.4.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!