Class ImportWildflyClientGlobalTransactionFilter
- java.lang.Object
-
- org.wildfly.extension.rts.jaxrs.ImportWildflyClientGlobalTransactionFilter
-
- All Implemented Interfaces:
javax.ws.rs.container.ContainerRequestFilter,javax.ws.rs.container.ContainerResponseFilter
@Provider @Priority(4920) public class ImportWildflyClientGlobalTransactionFilter extends Object implements javax.ws.rs.container.ContainerRequestFilter, javax.ws.rs.container.ContainerResponseFilter
Request and response filter which is expected to be called for the request side after the
InboundBridgeFilteris processed while on the response side before theInboundBridgeFilteris processed.Purpose of this filter is an integration of WFTC with Narayana REST-AT Inbound Bridge. Inbound Bridge uses Narayana transactions while WFLY utilizes WFTC transactions (wrapping the underlaying Narayana) ones. For that on request side the Inbound bridge first creates the Narayana transaction and then the request filter makes the WFTC to wrap and to know about this transaction. On the response side the WFTC needs to suspend its wrapping transaction and then Narayana suspend its own transaction (which was already suspended by WFTC callback and thus is ignored on the Narayana side).
The
InboundBridgeFilterdefines itsPriorityas. This WildFly filter has to be processed after the Narayana one and it needs to define higher priority.Priorities#USER-100- Author:
- Ondrej Chaloupka
-
-
Constructor Summary
Constructors Constructor Description ImportWildflyClientGlobalTransactionFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfilter(javax.ws.rs.container.ContainerRequestContext requestContext)voidfilter(javax.ws.rs.container.ContainerRequestContext requestContext, javax.ws.rs.container.ContainerResponseContext responseContext)
-
-
-
Method Detail
-
filter
public void filter(javax.ws.rs.container.ContainerRequestContext requestContext) throws IOException- Specified by:
filterin interfacejavax.ws.rs.container.ContainerRequestFilter- Throws:
IOException
-
filter
public void filter(javax.ws.rs.container.ContainerRequestContext requestContext, javax.ws.rs.container.ContainerResponseContext responseContext) throws IOException- Specified by:
filterin interfacejavax.ws.rs.container.ContainerResponseFilter- Throws:
IOException
-
-