[
https://issues.apache.org/jira/browse/CAMEL-21791?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17956189#comment-17956189
]
Claudio Miranda commented on CAMEL-21791:
-----------------------------------------
A couple of questions:
> We should make it possible to use by setting transacted=true,
Having the endpoint parameter "transacted" and envelope the kafka in a
transaction as in camel-jta ?
{code}
from("jms:cheese")
.transacted()
.to("bean:foo");
{code}
> allow optional transaction.id prefix (need to generate uid). See for example
> how spring-kafka does it.
The "transaction-id-prefix" is a required property in sb
https://docs.spring.io/spring-kafka/reference/kafka/transactions.html#overview
Given this example, if the transaction-id-prefix is unset, the example fails.
https://github.com/spring-projects/spring-kafka/blob/main/samples/sample-03/src/main/resources/application.yml#L5
What if the transaction-id-prefix could be inferred from the route id + uuid ?
> Also it may be that we need to have support for invoking being/commit/abort
> transaction methods,
Do you mean something similar to [sb kafka transaction
sync|https://docs.spring.io/spring-kafka/reference/kafka/transactions.html#transaction-synchronization]
?
> if we can integrate this with spring-transaction / jta via Camel transacted
> EIP.
Is it to use the SB JtaTransactionManager ?
> camel-kafka - Make kafka transactions more easier to use
> --------------------------------------------------------
>
> Key: CAMEL-21791
> URL: https://issues.apache.org/jira/browse/CAMEL-21791
> Project: Camel
> Issue Type: Improvement
> Components: camel-kafka
> Reporter: Claus Ibsen
> Assignee: Claudio Miranda
> Priority: Major
> Fix For: 4.x
>
>
> We should make it possible to use by setting transacted=true, and allow
> optional transaction.id prefix (need to generate uid). See for example how
> spring-kafka does it.
> Also it may be that we need to have support for invoking being/commit/abort
> transaction methods, and if we can integrate this with spring-transaction /
> jta via Camel transacted EIP.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)