
Originally Posted by
Mark Fisher
Now that I described that, there is one other option on the Spring Integration side... You could add a <channel> that has a "datatype" attribute with a value of "java.lang.String". In fact that could be the channel that the JMS outbound-channel-adapter is using for its input. Then, if you pass anything to that channel that the integration ConversionService can convert to a String, then all Messages arriving at the outbound-channel-adapter would be Strings (or else conversion exceptions would be generated).
Hopefully that last option sounds good to you. Let me know.