Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-21343

No longer possible to recreate camel-vm

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.7.0
    • 4.8.1, 4.9.0
    • camel-seda
    • None
    • Unknown

    Description

      Hello,

      Since this commit related to CAMEL-20934, it's no longer possible to recreate camel-vm because the prepareExchange method no longer returns an Exchange.

      Previously it was possible to write code like this one:

      protected Exchange prepareExchange(Exchange exchange) {
          Exchange result = copyExchangeWithProperties(exchange, m_camelContext);
          ExchangeExtension exchangeExtension = result.getExchangeExtension();
          exchangeExtension.setFromEndpoint(getEndpoint());
          exchangeExtension.setFromRouteId(getRouteId());
          return result;
      }
      

      Would it be possible to add back the ability to return the Exchange in the prepareExchange method?

      Thank you

      Attachments

        Activity

          People

            nfilotto Nicolas Filotto
            antoine.dessaigne Antoine DESSAIGNE
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: