JMS note

同步接收消息:  MessageConsumer.recerve();
异步接收消息:  MessageConsumer.setMessageListener(MessageListener);

JAAS来实现安全性验证。
use JAAS to authenticate using the login.config file on the classpath to configure JAAS

===
使用spring来组装BrokerFactoryBean
通过实现javax.jms.MessageListener的onMessage(Message message)的方法来进行监听

猜你喜欢

转载自forrest420.iteye.com/blog/1137029
jms