title: Spring integration message handler : ActiveMQTextMessage
body: <p>I'm facing a problem using a jdbc-store in a spring-int aggregator component.</p>
  
  <p>My flow is like this :</p>
  
  <p>ActiveMQ -> aggregator -> jdbc-message-store -> ftp</p>
  
  <p>But on handling the messages, i'm facing a java.io.NotSerializableException, as ActiveMQTextMessage is not serializable.</p>
  
  <p>As i was using a simpleMessageStore ( in memory ), this solution was working, but i can't get it to work right now.</p>
  
  <p>Do i need to create my own implementation of MessageHandler to convert the ActiveMQTextMessage to a proper Serializable Message , or am i doing something wrong ?</p>
  
  <p>Thanks.</p>
  
  <pre><code>&lt;int-jms:message-driven-channel-adapter id="inputQueueAdapter" 
                          channel="mqChannel"
                          max-concurrent-consumers="3" 
                          cache-level="3"
                          extract-payload="true"
                          connection-factory="jmsConnectionFactory"
                          destination-name="test.xdr.queue"/&gt;
  
  
  &lt;int:aggregator         id="XDRAggegator"
                          ref="xdrAggregator"
                          input-channel="mqChannel"
                          output-channel="publishChannel"
                          message-store="jdbc-messageStore"
                  /&gt;
  
  &lt;int-jdbc:message-store id="jdbc-messageStore" data-source="dataSource"  /&gt;
  </code></pre>