Thanks for the externsive answer, it lead me to the write part of the code. The error was I passed the JMS message to a method but needed to convert it to a string before.
-- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html