camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-9254) Rest binding can't be used with transacted() in same top-level route definition
Date Wed, 23 Mar 2016 08:35:25 GMT

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

Claus Ibsen resolved CAMEL-9254.
--------------------------------
    Resolution: Cannot Reproduce
      Assignee: Claus Ibsen

> 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
>            Assignee: Claus Ibsen
>
> 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)

Mime
View raw message