Defining a custome-converter within JdbcMessageStore
I am trying to use the xml namespace support for defining a jdbc message store.
However, the payloads of my messages flowing around are JaxB type, which fail throwing this exception when added to message store:
Code:
Caused by: org.springframework.core.serializer.support.SerializationFailedException: Failed to serialize object using DefaultSerializer; nested exception is java.io.NotSerializableException: com.xxx.commontypes.xxxx
at org.springframework.core.serializer.support.SerializingConverter.convert(SerializingConverter.java:65)
at org.springframework.integration.jdbc.JdbcMessageStore.addMessage(JdbcMessageStore.java:279)
I believe we should be able to specify a custom converter something like:
Code:
<int-jdbc:message-store id="quoteMessageStore" data-source="dataSource" message-converter="jaxBToStringConverter" />
Thoughts?