Spring Integration upgrade from 1.0 to 2.0.3

Today I had the pleasure to upgrade from Spring Integration 1.0 to 2.0.3 in a big project. As there are some major changes in 2.0 it took me several hours just to get everything compiling – not thinking about to get the millions of tests to run ;).

Here is what I found out besides the stuff that can be found in the official migration document or in this helpfull blogpost from JTEAM.

  • MessageChannel#getName
  • void AbstractReplyProducingMessageHandler
    #handleRequestMessage(Message, ReplyMessageHolder)
      replaced by
    Object AbstractReplyProducingMessageHandler
  • org.springframework.integration.channel.MapBasedChannelResolver
      removed (each router can have mappings now)
  • MessageChannelTemplate
      renamed to
  • MessageChannelTemplate#send(Message, MessageChannel)
      replaced by
    MassagingTemplate#send(MessageChannel, Message)