[
https://issues.apache.org/jira/browse/CAMEL-9254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15021038#comment-15021038
]
Claus Ibsen commented on CAMEL-9254:
------------------------------------
Can you try with 2.16.x as I could not reproduce this
> Rest binding can't be used with transacted() in same top-level route
> definition
> -------------------------------------------------------------------------------
>
> Key: CAMEL-9254
> URL: https://issues.apache.org/jira/browse/CAMEL-9254
> Project: Camel
> Issue Type: Bug
> Affects Versions: 2.15.3
> Reporter: Christian Bauer
>
> Broken:
> {code}
> rest("/foo")
> .get()
> .route()
> .transacted()
> .bean(getContext().hasService(SomeService.class), "someMethod");
> {code}
> Workaround:
> {code}
> rest("/foo")
> .get()
> .route()
> .to("direct:foo");
> from("direct:foo")
> .transacted()
> .bean(getContext().hasService(SomeService.class), "someMethod");
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)