BrokerService broker = new BrokerService();
broker.setPersistent(false);
broker.addConnector("stomp://localhost:61613").setName("Stomp");
broker.addConnector("tcp://localhost:61616").setName("Default");
broker.start();
ActiveMQConnectionFactory factory = new ActiveMQConnectionFactory("tcp://localhost:61616");
Connection connection = factory.createConnection();
Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
MessageProducer producer = session.createProducer(new ActiveMQQueue(getDestinationName()));