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

No longer possible to recreate camel-vm

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment