On Tuesday, February 28, 2012 8:58:05 AM Laurent Michenaud wrote:
> Hi,
> 
> I would like to know how is managed the spring transaction with cxf.
> 
> What i would like is :
> - Start Transaction
> - Deserialize cxf webservice request.
> - Spring Service
> - Serialize cxf webservice response.
> - Commit transaction

I think you would get that with the JMS transport.  Not with HTTP/servlet 
though.

> And not :
> - Deserialize cxf webservice request.
> - Start Transaction
> - Spring Service
> - Commit transaction
> - Serialize cxf webservice response.

I think the only ways to do this would be:

1) using a Camel route to route the request onto JMS and use the JMS stuff 
mentioned above and let JMS manage the transaction.

2) Write a servlet filter that would run before the CXF servlet that would 
setup the transaction and commit it and such.

3) Write a bunch of interceptors for CXF that would handle the transaction.   
Something at the start of the in chain to start the transaction and something 
at the very end of both the fault out and normal out to close/rollback it.



-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to