activeMQ(2)

 Comparison of the queue and topic


 JMS MESSAGE: message attributes message header message body

DeliveryMode:

Message body:

 

Message Properties: identification mark to re-focus


 

 // create session session affairs, if the sign is set to true in session.close () to add before session.commit () session.rollback () can be rolled back after the error 
// if not automatically sign hand sign if needed
message .acknowledge (); to sign
            Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);

 To ensure the reliability of: receipt of transaction durability


 connection.setClientID("000");

 

Guess you like

Origin www.cnblogs.com/ustc-anmin/p/11374566.html