[
https://issues.apache.org/jira/browse/CAMEL-6403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13733445#comment-13733445
]
Claus Ibsen edited comment on CAMEL-6403 at 8/12/13 5:45 PM:
-------------------------------------------------------------
If a consumer wants to handle the uow itself, such as this use, case then it
should do
{code}
consumer.createUoW(exchange);
{code}
When it creates the Exchange
And then when its done processing and all its needed work it must do
{code}
consumer.doneUoW(exchange);
{code}
These methods is part of DefaultConsumer.
This has been implemented for
- camel-http
- camel-jetty
- camel-netty
- camel-netty-http
- camel-cxf
was (Author: davsclaus):
If a consumer wants to handle the uow itself, such as this use, case then
it should do
{code}
consumer.createUoW(exchange);
{code}
When it creates the Exchange
And then when its done processing and all its needed work it must do
{code}
consumer.doneUoW(exchange);
{code}
These methods is part of DefaultConsumer.
This has been implemented for
- camel-http
- camel-jetty
- camel-netty
- camel-netty-http
> Add support for UnitOfWork per request
> --------------------------------------
>
> Key: CAMEL-6403
> URL: https://issues.apache.org/jira/browse/CAMEL-6403
> Project: Camel
> Issue Type: Improvement
> Components: camel-jetty
> Affects Versions: 2.11.0
> Reporter: Gert Vanthienen
> Assignee: Claus Ibsen
> Fix For: 2.12.0
>
>
> When using a {{camel-jetty}} endpoint, the {{UnitOfWork}} is not being
> managed by the servlet handling the request but by the Camel route that's
> being invoked.
> This means that some resources have already been removed/cleaned up when the
> servlet is writing the response, e.g. files for cached streams have already
> removed before the servlet gets a chance to read from them.
> It would be nice to have an option available to configure the servlet itself
> to handle the unit of work and mark it {{done}} after the HTTP response has
> been written. That way, the unit of work can be matched up with the actual
> HTTP request.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira