message.setJMSPriority(7);
return message;
}
};
TradeData trade = new TradeData();
Trade2Data trade2 = new Trade2Data();
//jmsTemplate.convertAndSend(queueDest, "BUY, AAPL, 100 Shares");
//jmsTemplate.convertAndSend(queueName, xml.toString());
jmsTemplate.convertAndSend(trade, postProcessor);
System.out.println("Message Sent...");