[jira] [Work started] (CAMEL-18273) [Camel Spring Boot Examples] Add Saga EIP example

2022-07-17 Thread Andrea Cosentino (Jira)


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

Work on CAMEL-18273 started by Andrea Cosentino.

> [Camel Spring Boot Examples] Add Saga EIP example
> -
>
> Key: CAMEL-18273
> URL: https://issues.apache.org/jira/browse/CAMEL-18273
> Project: Camel
>  Issue Type: Task
>  Components: examples
>Reporter: Marco Carletti
>Assignee: Andrea Cosentino
>Priority: Major
> Fix For: 3.19.0
>
>
> Implement a new Camel Spring Boot example, to show how the 
> [Saga|https://camel.apache.org/components/latest/eips/saga-eip.html] works



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


[jira] [Assigned] (CAMEL-18273) [Camel Spring Boot Examples] Add Saga EIP example

2022-07-17 Thread Andrea Cosentino (Jira)


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

Andrea Cosentino reassigned CAMEL-18273:


Assignee: Andrea Cosentino

> [Camel Spring Boot Examples] Add Saga EIP example
> -
>
> Key: CAMEL-18273
> URL: https://issues.apache.org/jira/browse/CAMEL-18273
> Project: Camel
>  Issue Type: Task
>  Components: examples
>Reporter: Marco Carletti
>Assignee: Andrea Cosentino
>Priority: Major
> Fix For: 3.19.0
>
>
> Implement a new Camel Spring Boot example, to show how the 
> [Saga|https://camel.apache.org/components/latest/eips/saga-eip.html] works



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


[jira] [Resolved] (CAMEL-18273) [Camel Spring Boot Examples] Add Saga EIP example

2022-07-17 Thread Andrea Cosentino (Jira)


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

Andrea Cosentino resolved CAMEL-18273.
--
Resolution: Fixed

> [Camel Spring Boot Examples] Add Saga EIP example
> -
>
> Key: CAMEL-18273
> URL: https://issues.apache.org/jira/browse/CAMEL-18273
> Project: Camel
>  Issue Type: Task
>  Components: examples
>Reporter: Marco Carletti
>Assignee: Andrea Cosentino
>Priority: Major
> Fix For: 3.19.0
>
>
> Implement a new Camel Spring Boot example, to show how the 
> [Saga|https://camel.apache.org/components/latest/eips/saga-eip.html] works



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


[jira] [Updated] (CAMEL-18273) [Camel Spring Boot Examples] Add Saga EIP example

2022-07-17 Thread Andrea Cosentino (Jira)


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

Andrea Cosentino updated CAMEL-18273:
-
Fix Version/s: 3.19.0

> [Camel Spring Boot Examples] Add Saga EIP example
> -
>
> Key: CAMEL-18273
> URL: https://issues.apache.org/jira/browse/CAMEL-18273
> Project: Camel
>  Issue Type: Task
>  Components: examples
>Reporter: Marco Carletti
>Priority: Major
> Fix For: 3.19.0
>
>
> Implement a new Camel Spring Boot example, to show how the 
> [Saga|https://camel.apache.org/components/latest/eips/saga-eip.html] works



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


[jira] [Updated] (CAMEL-18269) [Camel Spring Boot Examples] Update version

2022-07-17 Thread Andrea Cosentino (Jira)


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

Andrea Cosentino updated CAMEL-18269:
-
Fix Version/s: 3.19.0

> [Camel Spring Boot Examples] Update version 
> 
>
> Key: CAMEL-18269
> URL: https://issues.apache.org/jira/browse/CAMEL-18269
> Project: Camel
>  Issue Type: Task
>  Components: examples
>Reporter: Marco Carletti
>Priority: Major
> Fix For: 3.19.0
>
>
> Since the version of Camel Spring Boot has been released 
> [camel-spring-boot-3.18.0|https://github.com/apache/camel-spring-boot/releases/tag/camel-spring-boot-3.18.0]
>  the version of the 
> [examples|https://github.com/apache/camel-spring-boot-examples] should be 
> updated as well, increasing the snapshot and creating the tag



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


[jira] [Resolved] (CAMEL-18269) [Camel Spring Boot Examples] Update version

2022-07-17 Thread Andrea Cosentino (Jira)


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

Andrea Cosentino resolved CAMEL-18269.
--
Resolution: Fixed

> [Camel Spring Boot Examples] Update version 
> 
>
> Key: CAMEL-18269
> URL: https://issues.apache.org/jira/browse/CAMEL-18269
> Project: Camel
>  Issue Type: Task
>  Components: examples
>Reporter: Marco Carletti
>Assignee: Andrea Cosentino
>Priority: Major
> Fix For: 3.19.0
>
>
> Since the version of Camel Spring Boot has been released 
> [camel-spring-boot-3.18.0|https://github.com/apache/camel-spring-boot/releases/tag/camel-spring-boot-3.18.0]
>  the version of the 
> [examples|https://github.com/apache/camel-spring-boot-examples] should be 
> updated as well, increasing the snapshot and creating the tag



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


[jira] [Assigned] (CAMEL-18269) [Camel Spring Boot Examples] Update version

2022-07-17 Thread Andrea Cosentino (Jira)


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

Andrea Cosentino reassigned CAMEL-18269:


Assignee: Andrea Cosentino

> [Camel Spring Boot Examples] Update version 
> 
>
> Key: CAMEL-18269
> URL: https://issues.apache.org/jira/browse/CAMEL-18269
> Project: Camel
>  Issue Type: Task
>  Components: examples
>Reporter: Marco Carletti
>Assignee: Andrea Cosentino
>Priority: Major
> Fix For: 3.19.0
>
>
> Since the version of Camel Spring Boot has been released 
> [camel-spring-boot-3.18.0|https://github.com/apache/camel-spring-boot/releases/tag/camel-spring-boot-3.18.0]
>  the version of the 
> [examples|https://github.com/apache/camel-spring-boot-examples] should be 
> updated as well, increasing the snapshot and creating the tag



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


[jira] [Created] (CAMEL-18275) onCompletion tasks don't get executed in a pipeline with several SEDA queues

2022-07-17 Thread Eduard (Jira)
Eduard created CAMEL-18275:
--

 Summary: onCompletion tasks don't get executed in a pipeline with 
several SEDA queues
 Key: CAMEL-18275
 URL: https://issues.apache.org/jira/browse/CAMEL-18275
 Project: Camel
  Issue Type: Bug
  Components: came-core
Affects Versions: 3.18.0
Reporter: Eduard


I stumbled upon a problem with not working {{onCompletion}} between the routes 
that pass a message over SEDA queues.

The route configuration is similar to this simplified version:

 
{code:java}
from("direct:a")
  .onCompletion().log("a - done").end()
  .to("seda:b");

from("seda:b")
  .onCompletion().log("b - done").end()
  .to("seda:c");

from("seda:c")
  .onCompletion().log("c - done").end()
  .to("seda:d");

from("seda:d")
  .onCompletion().log("d - done").end()
  .to("mock:end"); {code}
 

With this configuration, I get only {{"d - done"}} logging.

I debugged the execution and noticed that the {{onCompletion}} handler from 
"a", "b", and "c" don't get executed because they are route-scoped and get 
attempted to be executed in the scope of the next route.

This happens because they get handed over from the initial exchange to an 
exchange prepared for the next route. It happens in the 
{{SedaProducer::addToQueue}} method with {{{}copy{}}}parameter defined as 
{{{}true{}}}, which makes the {{::prepareCopy}} method being called, which in 
its turn calls {{ExchangeHelper.createCorrelatedCopy}} with {{handover}} 
defined as {{{}true{}}}.

It seems to me like a bug, because looking at the routes configuration I'd 
expect different behavior: all the {{onCompletion}} tasks get executed 
reporting on routes finalization. Though maybe I'm missing something here, and 
if this is the case then I would appreciate you guys helping me to find out the 
missing details.

Here is a [unit test reproducing the 
problem|https://gist.github.com/Gems/7555776feae619ac71ed8d9dd9d4d33e].



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