- All Implemented Interfaces:
- javax.ws.rs.client.ClientRequestFilter, javax.ws.rs.client.ClientResponseFilter
public class TransactionAwareRestClientFilter
extends Object
implements javax.ws.rs.client.ClientRequestFilter, javax.ws.rs.client.ClientResponseFilter
Filter (interceptor) that adds the current thread's JTA transaction context
to outgoing REST calls, and makes sure that the response is added to the
commit scope of the active transaction.
This class is only needed for REST clients that embed the Atomikos JTA
transaction manager, and it automatically makes outgoing REST calls part of
the transaction.