MessageProducer producer = session.createProducer(HornetQMixIn.getJMSQueue(queueName));
producer.send(hqMixIn.createJMSMessage(payload));
session.close();
verifyOutputQueue(hqMixIn.createJMSSession());
} finally {
hqMixIn.uninitialize();
}
}
private static void sendToActiveMQ(String payload, String queueName) throws Exception {
ConnectionFactory cf = new ActiveMQConnectionFactory(AMQ_USER, AMQ_PASSWD, AMQ_BROKER_URL);