[ 
https://issues.apache.org/jira/browse/CAMEL-18783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lukas Lowinger updated CAMEL-18783:
-----------------------------------
    Description: 
Having one `cxf:bean:soapClientEndpoint` (with Singleton scope) and following 
two routes

{code}
        from("direct:simpleUriBean")
                .to("cxf:bean:soapClientEndpoint?dataFormat=PAYLOAD");

        from("direct:operandsAdd")
                .to("cxf:bean:soapClientEndpoint?dataFormat=POJO");
{code}

Leads to situation, that invoking route via `direct:simpleUriBean` will use 
`dataFormat=POJO` instead of PAYLOAD (which reader of that code could expect). 
Could we somehow detect those misuses ?

  was:
Having one `cxf:bean:soapClientEndpoint` (with Singleton scope) and following 
two routes

{code}
        from("direct:simpleUriBean")
                .toD("cxf:bean:soapClientEndpoint?dataFormat=PAYLOAD");

        from("direct:operandsAdd")
                .to("cxf:bean:soapClientEndpoint?dataFormat=POJO");
{code}

Leads to situation, that invoking route via `direct:simpleUriBean` will use 
`dataFormat=POJO` instead of PAYLOAD (which reader of that code could expect). 
Could we somehow detect those misuses ?


> Detect unused URI options in route definition
> ---------------------------------------------
>
>                 Key: CAMEL-18783
>                 URL: https://issues.apache.org/jira/browse/CAMEL-18783
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>    Affects Versions: 3.18.3
>            Reporter: Lukas Lowinger
>            Priority: Major
>
> Having one `cxf:bean:soapClientEndpoint` (with Singleton scope) and following 
> two routes
> {code}
>         from("direct:simpleUriBean")
>                 .to("cxf:bean:soapClientEndpoint?dataFormat=PAYLOAD");
>         from("direct:operandsAdd")
>                 .to("cxf:bean:soapClientEndpoint?dataFormat=POJO");
> {code}
> Leads to situation, that invoking route via `direct:simpleUriBean` will use 
> `dataFormat=POJO` instead of PAYLOAD (which reader of that code could 
> expect). Could we somehow detect those misuses ?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to