activemq use of objectMessage send the object being given

Investigation

1, if the entity class implements Serializable ID best not include a sequence number less (IDEA setting file - setting-editor-inspections-java-serializable issues - serialVersionUID tick, the entity class selection ALT + ENTER generated serialVersionUID)

2、

//1.创建ConnectionFactory
ConnectionFactory connectionFactory = new ActiveMQConnectionFactory(url);
((ActiveMQConnectionFactory) connectionFactory).setTrustAllPackages(true);//这里设置为true 具体原因应该是安全设置问题

 

 

Published 168 original articles · won praise 16 · views 90000 +

Guess you like

Origin blog.csdn.net/ajax_yan/article/details/104815129