Class JTAOverWSATFeature
java.lang.Object
jakarta.xml.ws.WebServiceFeature
org.jboss.ws.api.configuration.AbstractClientFeature
org.jboss.jbossts.txbridge.outbound.JTAOverWSATFeature
public final class JTAOverWSATFeature
extends org.jboss.ws.api.configuration.AbstractClientFeature
Web service feature is used to enable or disable JTA context propagation over WS-AT.
- Author:
- Gytis Trikleris
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value to indicate that JTAOverWSATFeature is disabled.static final String
Value to indicate that JTAOverWSATFeature is enabled.static final String
Key to store JTAOverWSATFeature's enabled/disabled value in SOAP header.Fields inherited from class jakarta.xml.ws.WebServiceFeature
enabled
-
Constructor Summary
ConstructorDescriptionDefault constructor creates an instance of enabled JTAOverWSATFeature.JTAOverWSATFeature
(boolean enabled) Parametrised constructor creates either enabled or disabled JTAOverWSATFeature based onenabled
parameter. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
initializeBindingProvider
(jakarta.xml.ws.BindingProvider bp) SetsJTAOverWSATFeature.REQUEST_CONTEXT_KEY
value toJTAOverWSATFeature.ENABLED_VALUE
andWSTXFeature.REQUEST_CONTEXT_KEY
value toWSTXFeature.ENABLED_VALUE
if JTAOverWSATFeature is enabled.Methods inherited from class org.jboss.ws.api.configuration.AbstractClientFeature
getID, initialize
Methods inherited from class jakarta.xml.ws.WebServiceFeature
isEnabled
-
Field Details
-
REQUEST_CONTEXT_KEY
Key to store JTAOverWSATFeature's enabled/disabled value in SOAP header.- See Also:
-
ENABLED_VALUE
Value to indicate that JTAOverWSATFeature is enabled.- See Also:
-
DISABLED_VALUE
Value to indicate that JTAOverWSATFeature is disabled.- See Also:
-
-
Constructor Details
-
JTAOverWSATFeature
public JTAOverWSATFeature()Default constructor creates an instance of enabled JTAOverWSATFeature. -
JTAOverWSATFeature
public JTAOverWSATFeature(boolean enabled) Parametrised constructor creates either enabled or disabled JTAOverWSATFeature based onenabled
parameter.- Parameters:
enabled
- true to create enabled JTAOverWSATFeature, false to create disabled JTAOverWSATFeature.
-
-
Method Details
-
initializeBindingProvider
protected void initializeBindingProvider(jakarta.xml.ws.BindingProvider bp) SetsJTAOverWSATFeature.REQUEST_CONTEXT_KEY
value toJTAOverWSATFeature.ENABLED_VALUE
andWSTXFeature.REQUEST_CONTEXT_KEY
value toWSTXFeature.ENABLED_VALUE
if JTAOverWSATFeature is enabled. It is because WSTXFeature has to be enabled in order to make JTAOverWSATFeature work. SetsJTAOverWSATFeature.REQUEST_CONTEXT_KEY
value toJTAOverWSATFeature.DISABLED_VALUE
if JTAOverWSATFeature is disabled.- Overrides:
initializeBindingProvider
in classorg.jboss.ws.api.configuration.AbstractClientFeature
- Parameters:
bp
- binding provider
-