http://activemq.apache.org/configuring-version-5-transports.html
Activemq uses tcp protocol by default.
Before network transmission, serialized data is a byte stream
. The advantages of open wire tcp protocol
High reliability and strong stability; high efficiency, using byte stream transmission; high efficiency and availability support all platforms
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";