Saravanakumar Selvaraj created CAMEL-27407:
----------------------------------------------

             Summary: camel-cxf: synchronous has the label producer in cxf and 
cxfrs, but the consumer uses it too
                 Key: CAMEL-27407
                 URL: https://issues.apache.org/jira/browse/CAMEL-27407
             Project: Camel
          Issue Type: Bug
          Components: camel-cxf
    Affects Versions: 4.23.0
            Reporter: Saravanakumar Selvaraj


Found while reviewing the descriptions of camel-cxf for CAMEL-23832. The 
description of https://github.com/apache/camel/pull/29725 reported the label 
and did not change it.

The synchronous option has the labels producer and advanced in four places. 
They are the component option and the endpoint option of cxf, and the same two 
of cxfrs. The consumer uses the option too:

- cxf: CxfConsumer runs the route synchronously when synchronous is true. 
Otherwise it uses a CXF continuation when it gets one.
- cxfrs: CxfRsInvoker takes no CXF continuation when synchronous is true, and 
runs the route synchronously.

The descriptions of the four options say that for both sides.

Because of the label:

- The Endpoint DSL offers synchronous only on the advanced producer builder. 
The advanced consumer builder has no such method.
- The catalog validation in consumer-only mode reports synchronous as not 
applicable, for cxf and for cxfrs. An example is 
cxf:bean:orderEndpoint?synchronous=true.

Proposed change: the label advanced alone, in the four places. The Endpoint DSL 
then offers synchronous on the advanced consumer builder too. No builder loses 
a method.

Checked on main at c8a22129ea. The tag camel-4.23.0 has the same label and the 
same two uses in the consumer. The validation results come from a run of the 
catalog classes with the component JSON of that commit.

_Claude Code on behalf of saravanakumar1987_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to