I have a pojo object which generates a string going into a jms outbound gateway, my question is how to i specify header value such as jmscorrelationid, jmsmsgid etc. how does a string gets converted to a jmsmessage and sent toe the destination? Should I have the pojo generate a Message instead of String?

thanks