ActiveMQ服务器宕机-消息丢失

1.ActiveMQ 安装:

ActiveMQ 官网: http://activemq.apache.org

ActiveMQ5.10.x 以上版本必须使用 JDK1.8 才能正常使用。

ActiveMQ5.9.x 及以下版本使用 JDK1.7 即可正常使用。

2.What is the difference between persistent and non-persistent delivery?

 The persistence flag is set on the MessageProducer for all messages using the setDeliveryMode.

It can also be specified on a per message basis using the long form of the send method. Persistence is a property of a an individual message.

http://activemq.apache.org/what-is-the-difference-between-persistent-and-non-persistent-delivery