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

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
    Default constructor creates an instance of enabled JTAOverWSATFeature.
    JTAOverWSATFeature(boolean enabled)
    Parametrised constructor creates either enabled or disabled JTAOverWSATFeature based on enabled parameter.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    initializeBindingProvider(jakarta.xml.ws.BindingProvider bp)
    Sets JTAOverWSATFeature.REQUEST_CONTEXT_KEY value to JTAOverWSATFeature.ENABLED_VALUE and WSTXFeature.REQUEST_CONTEXT_KEY value to WSTXFeature.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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • REQUEST_CONTEXT_KEY

      public static final String REQUEST_CONTEXT_KEY
      Key to store JTAOverWSATFeature's enabled/disabled value in SOAP header.
      See Also:
    • ENABLED_VALUE

      public static final String ENABLED_VALUE
      Value to indicate that JTAOverWSATFeature is enabled.
      See Also:
    • DISABLED_VALUE

      public static final String 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 on enabled parameter.
      Parameters:
      enabled - true to create enabled JTAOverWSATFeature, false to create disabled JTAOverWSATFeature.
  • Method Details

    • initializeBindingProvider

      protected void initializeBindingProvider(jakarta.xml.ws.BindingProvider bp)
      Sets JTAOverWSATFeature.REQUEST_CONTEXT_KEY value to JTAOverWSATFeature.ENABLED_VALUE and WSTXFeature.REQUEST_CONTEXT_KEY value to WSTXFeature.ENABLED_VALUE if JTAOverWSATFeature is enabled. It is because WSTXFeature has to be enabled in order to make JTAOverWSATFeature work. Sets JTAOverWSATFeature.REQUEST_CONTEXT_KEY value to JTAOverWSATFeature.DISABLED_VALUE if JTAOverWSATFeature is disabled.
      Overrides:
      initializeBindingProvider in class org.jboss.ws.api.configuration.AbstractClientFeature
      Parameters:
      bp - binding provider