activemq传输协议

http://activemq.apache.org/configuring-version-5-transports.html

activemq 默认采用tcp协议
在网络传输之前,序列化数据为字节流 open wire
tcp协议的优点
可靠性高稳定性强;效率高,采用字节流的方式传递;高效性、可用性支持所有平台

nio协议:

在这里插入图片描述
auto+nio

在这里插入图片描述

//	public static String url = "tcp://localhost:61616";
//	public static String url = "nio://localhost:61618";
	public static String url = "auto+nio://localhost:5671";

猜你喜欢

转载自blog.csdn.net/weixin_39472101/article/details/115279190
今日推荐