String password = env("STOMP_PASSWORD", "password");
String host = env("STOMP_HOST", "localhost");
int port = Integer.parseInt(env("STOMP_PORT", "61613"));
String destination = arg(args, 0, "/topic/event");
StompJmsConnectionFactory factory = new StompJmsConnectionFactory();
factory.setBrokerURI("tcp://" + host + ":" + port);
Connection connection = factory.createConnection(user, password);
connection.start();
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
Destination dest = StompJmsDestination.createDestination(destination);
MessageConsumer consumer = session.createConsumer(dest);