3 Replies Latest reply on Apr 10, 2013 2:21 PM by Łukasz Dywicki

    What is the purpose of the create parameter on MessageComposer.compose() ?

    Keith Babo Master

      I think it's only there to support using MessageComposer for camel implementations (mapping between SY exchange and Camel exchange).  If so, we should remove this extra parameter as part of removing the message composer hooks for camel implementations.

       

      public Message compose(D source, Exchange exchange, boolean create) throws Exception;
      

       

      Should be this, IMHO:

       

      public Message compose(D source, Exchange exchange) throws Exception;