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";