[ https://issues.apache.org/activemq/browse/CAMEL-2128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55142#action_55142 ]
Christian Schneider commented on CAMEL-2128: -------------------------------------------- I have built a camel-cxf module that includes the patch. Now the rollback basically works. The problem is that it happens for all exceptions. I think a good default would be to return a fault for all exceptions that the service explicitly defines and roll back for all other exceptions. The problem is I have no idea how this could be done. In the meantime I will try to use an onException() clause to do this differentiation. > Rollback does not work for transactional routes using camel-cxf > --------------------------------------------------------------- > > Key: CAMEL-2128 > URL: https://issues.apache.org/activemq/browse/CAMEL-2128 > Project: Apache Camel > Issue Type: Bug > Components: camel-cxf > Affects Versions: 2.0.0 > Reporter: Christian Schneider > Attachments: appcontext.xml, patch.txt > > > I have a request reply service that should be able to do three different > things: > 1) no exception occurs in the implementation: The jms Message should be > committed and the normal reply should be sent > 2) The implementation throws an exception defined in the service contract: > The jms message should be committed and a fault should be sent > 3) The implemementation throws another kind of exception: The message > delivery should > be rolled back so it can be received again > Case 1 and 2 currently work as expected. > For Case 3 a fault is returned to the caller and the transaction is committed > which is wrong. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.