Converting code to use HornetQ REST JMS endpoints