Claus Ibsen created CAMEL-26850:
-----------------------------------
Summary: camel-jbang - camel run: a route with transacted
processes no messages
Key: CAMEL-26850
URL: https://issues.apache.org/jira/browse/CAMEL-26850
Project: Camel
Issue Type: Bug
Components: camel-jbang
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 4.24.0
Under camel run, a route that uses transacted starts, but it processes nothing:
no step runs, nothing is logged, and every message is gone without an error.
camel run binds a placeholder transaction policy under every PROPAGATION_* name
(TransactedDownloader in camel-kamelet-main). Its wrap() returns null, so the
route has no processor, and the routing engine treats a null processor as done.
The placeholder also replaces a policy that the user declared under such a name.
Reproduction: a timer route with a log, then transacted, then a log. With
transacted there is no log line; without it, both lines are logged. The
placeholder has done this since 4.10.
* The placeholder lets the message pass through without a transaction, and
camel run logs a WARN for the route: it runs without a transaction, and an
export to Spring Boot or Quarkus gives real transactions.
* The placeholder is bound only when the registry has no policy under that name.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)