I have played around with Artemis for a few days, here are the useful command I used. The exact config is stored at my github.
https://github.com/jimmysyss/artemis-config
1. Create 2 brokers with port offset
artemis create mybroker1 –port-offset 0
artemis create mybroker2 –port-offset 0
2. Testing the producer and consumer
./artemis producer –url tcp://localhost:61616
./artemis consumer –url tcp://localhost:61616
3. Enabled clustered
See jgroup.xml and broker.xml
4. Load balancing 5. Enable SSL for HornetQ OpenWire protocol
See broker.xml, Add
a. Provide keystore.jks and truststore.jks
b. Config the acceptor in broker.xml