Mirgrate Camel EIP decorated headers to properties
--------------------------------------------------

                 Key: CAMEL-1702
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1702
             Project: Apache Camel
          Issue Type: Improvement
          Components: camel-core
            Reporter: Claus Ibsen
             Fix For: 2.0.0


We should migrate various headers that Camel EIP add to exhanges from headers 
to properties.
Many of them more naturally fit as a property than a header. And we have good 
support in the DSL to retrieve the headers.
And in fact Camel does a fallback from header -> property so much end user code 
will not break.

Look at Exchange to see all the keys we have for headers. For example:
{code}
    String AGGREGATED_INDEX = "CamelAggregatedIndex";
    String AGGREGATED_SIZE  = "CamelAggregatedSize";

    String ASYNC_WAIT = "CamelAsyncWait";

    String BATCH_INDEX    = "CamelBatchIndex";
    String BATCH_SIZE     = "CamelBatchSize";
    String BATCH_COMPLETE = "CamelBatchComplete";

    String BEAN_METHOD_NAME           = "CamelBeanMethodName";
    String BEAN_HOLDER                = "CamelBeanHolder";
    String BEAN_MULTI_PARAMETER_ARRAY = "CamelBeanMultiParameterArray";
    String DATASET_INDEX = "CamelDataSetIndex";

    String EXCEPTION_CAUGHT  = "CamelExceptionCaught";
    String EXCEPTION_HANDLED = "CamelExceptionHandled";
    String FAILURE_HANDLED   = "CamelFailureHandled";
    String FILTERED             = "CamelFiltered";
    String INTERCEPTED_ENDPOINT = "CamelInterceptedEndpoint";

    String LOG_DEBUG_BODY_MAX_CHARS = "CamelLogDebugBodyMaxChars";
    String LOOP_INDEX               = "CamelLoopIndex";
    String LOOP_SIZE                = "CamelLoopSize";

    String MULTICAST_INDEX = "CamelMulticastIndex";

    String ON_COMPLETION = "CamelOnCompletion";

    String ROUTE_STOP = "CamelRouteStop";

    String REDELIVERED        = "CamelRedelivered";
    String REDELIVERY_COUNTER = "CamelRedeliveryCounter";

    String SPLIT_INDEX = "CamelSplitIndex";
    String SPLIT_SIZE  = "CamelSplitSize";

    String TRANSACTED    = "CamelTransacted";
    String ROLLBACK_ONLY = "CamelRollbackOnly";
{code}

Most of this list should be stored as properties instead of headers. Some of 
them already do that.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to