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

Claus Ibsen updated CAMEL-27921:
--------------------------------
    Description: 
Found while improving the option descriptions of camel-mina for CAMEL-23832 
(commit 
https://github.com/apache/camel/commit/5f542b6878233d6013e30e1f58158711a5c8e283,
 pull request https://github.com/apache/camel/pull/31180).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. The consumer ignores exchangePattern
The {{MinaConsumer}} constructor always calls 
getEndpoint().setExchangePattern(InOut), so the exchangePattern option is 
ignored.
Proposed change: honour an exchangePattern that the user set, or document that 
it is fixed to InOut.

h4. 2. Exchange pattern set before the URI options
{{MinaComponent.createEndpoint}} sets the exchange pattern from config.isSync() 
before setProperties applies the URI options, so with sync=false the endpoint 
pattern stays InOut (no visible effect found).
Proposed change: set it after setProperties.

h4. 3. Smaller issues
The comment in MinaProducer.maybeDisconnectOnTimeout says disconnectOnNoReply 
has no effect anywhere, but the consumer uses it (the pull request adds a note 
to the 4.25 upgrade guide). The protocol path parameter has no enum (tcp, udp, 
vm). filters has the label codec.


_Claude Code on behalf of davsclaus_

  was:
Found while improving the option descriptions of camel-mina for CAMEL-23832 
(pull request https://github.com/apache/camel/pull/31180).
These are separate problems of the component; the descriptions change only 
documents the current behavior.

h4. 1. The consumer ignores exchangePattern
The {{MinaConsumer}} constructor always calls 
getEndpoint().setExchangePattern(InOut), so the exchangePattern option is 
ignored.
Proposed change: honour an exchangePattern that the user set, or document that 
it is fixed to InOut.

h4. 2. Exchange pattern set before the URI options
{{MinaComponent.createEndpoint}} sets the exchange pattern from config.isSync() 
before setProperties applies the URI options, so with sync=false the endpoint 
pattern stays InOut (no visible effect found).
Proposed change: set it after setProperties.

h4. 3. Smaller issues
The comment in MinaProducer.maybeDisconnectOnTimeout says disconnectOnNoReply 
has no effect anywhere, but the consumer uses it (the pull request adds a note 
to the 4.25 upgrade guide). The protocol path parameter has no enum (tcp, udp, 
vm). filters has the label codec.


_Claude Code on behalf of davsclaus_


> camel-mina: the consumer ignores exchangePattern, and the exchange pattern is 
> set before the URI options
> --------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-27921
>                 URL: https://issues.apache.org/jira/browse/CAMEL-27921
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mina
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: 4.25.0
>
>
> Found while improving the option descriptions of camel-mina for CAMEL-23832 
> (commit 
> https://github.com/apache/camel/commit/5f542b6878233d6013e30e1f58158711a5c8e283,
>  pull request https://github.com/apache/camel/pull/31180).
> These are separate problems of the component; the descriptions change only 
> documents the current behavior.
> h4. 1. The consumer ignores exchangePattern
> The {{MinaConsumer}} constructor always calls 
> getEndpoint().setExchangePattern(InOut), so the exchangePattern option is 
> ignored.
> Proposed change: honour an exchangePattern that the user set, or document 
> that it is fixed to InOut.
> h4. 2. Exchange pattern set before the URI options
> {{MinaComponent.createEndpoint}} sets the exchange pattern from 
> config.isSync() before setProperties applies the URI options, so with 
> sync=false the endpoint pattern stays InOut (no visible effect found).
> Proposed change: set it after setProperties.
> h4. 3. Smaller issues
> The comment in MinaProducer.maybeDisconnectOnTimeout says disconnectOnNoReply 
> has no effect anywhere, but the consumer uses it (the pull request adds a 
> note to the 4.25 upgrade guide). The protocol path parameter has no enum 
> (tcp, udp, vm). filters has the label codec.
> _Claude Code on behalf of davsclaus_



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

Reply via email to