Camel
  1. Camel
  2. CAMEL-5189

Bean component - Should preserver properties from exchange to allow to transfer state

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.0
    • Fix Version/s: 2.9.3, 2.10.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      See nabble
      http://camel.465427.n5.nabble.com/Stateful-Dynamic-Router-tp5647070p5647070.html

      This allows other EIPs such as the dynamic route to use state when using a bean as its expression.

        Activity

        Hide
        Claus Ibsen added a comment -

        Updated the wiki page of the dynamic router EIP as well

        Show
        Claus Ibsen added a comment - Updated the wiki page of the dynamic router EIP as well
        Hide
        Luke Hamaty added a comment -

        It would seem that at some time there was a concern that bean/method expressions (expressions in general?) not have side effects on an exchange. Is that not still a concern?
        This change negates the whole point of using a copy of the exchange, so wouldn't it be simpler to just not use a copy?
        Also, a bean expression that uses a camel ognl expression for the method name will still not propagate state because the OgnlInvokeProcessor uses a copy as well.

        Show
        Luke Hamaty added a comment - It would seem that at some time there was a concern that bean/method expressions (expressions in general?) not have side effects on an exchange. Is that not still a concern? This change negates the whole point of using a copy of the exchange, so wouldn't it be simpler to just not use a copy? Also, a bean expression that uses a camel ognl expression for the method name will still not propagate state because the OgnlInvokeProcessor uses a copy as well.
        Hide
        Larim added a comment - - edited

        I'm facing the same problem using camel 10.3. Storing the state works until the routing method returns NULL.

        Show
        Larim added a comment - - edited I'm facing the same problem using camel 10.3. Storing the state works until the routing method returns NULL.

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            Claus Ibsen
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development