[
https://issues.apache.org/jira/browse/CAMEL-17649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17492510#comment-17492510
]
Aurélien Pupier edited comment on CAMEL-17649 at 2/15/22, 10:27 AM:
it seems that in fact, usage of headerName or name attributes depends on more
parameters:
using route attribute directly, when loading, iI need to use the name:
{noformat}
value of header 1
value of header 2
value of property 1
value of property 2
{noformat}
when using the spring and camelcontext, I need to use the headerName:
{noformat}
http://www.springframework.org/schema/beans;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation="
http://www.springframework.org/schema/beans
https://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://camel.apache.org/schema/spring
https://camel.apache.org/schema/spring/camel-spring.xsd;>
http://camel.apache.org/schema/spring;>
value of header 1
value of header 2
value of property 1
value of property 2
{noformat}
was (Author: apupier):
it seems that in fact, usage of headerName or name attributes depends on more
parameters:
using route attribute directly, when loading, iI need to use the name:
{noformat}
value of header 1
value of header 2
value of property 1
value of property 2
{noformat}
when using the spring and camelcontext, I need to use the headerName:
{noformaŧ}
http://www.springframework.org/schema/beans;
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation="
http://www.springframework.org/schema/beans
https://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://camel.apache.org/schema/spring
https://camel.apache.org/schema/spring/camel-spring.xsd;>
http://camel.apache.org/schema/spring;>
value of header 1
value of header 2
value of property 1
value of property 2
{noformat}
> Examples for setHeader in example are outdated: it contains name attribute
> instead of headerName
>
>
> Key: CAMEL-17649
> URL: https://issues.apache.org/jira/browse/CAMEL-17649
> Project: Camel
> Issue Type: Bug
> Components: documentation, eip
>Affects Versions: 3.15.0
>Reporter: Aurélien Pupier
>Priority: Major
>
> see
> https://camel.apache.org/components/3.15.x/eips/setHeader-eip.html#_using_set_header
> {noformat}
>
>
>
> test
>
>
>
> {noformat}
> I think that it should be:
> {noformat}
>
>
>
> test
>
>
>
> {noformat}
> it was renamed with 3.0
> https://camel.apache.org/manual/camel-3-migration-guide.html#_setheader_and_setproperty_in_xml_dsl
--
This message was sent by Atlassian Jira
(v8.20.1#820001)