
org.jboss.jbossts.txbridge.outbound.DisabledJTAOverWSATHandler Maven / Gradle / Ivy
/*
Copyright The Narayana Authors
SPDX-License-Identifier: Apache-2.0
*/
package org.jboss.jbossts.txbridge.outbound;
import jakarta.xml.ws.handler.MessageContext;
/**
* This handler is used when default-context-propagation
is disabled. It handles messages only if
* JTAOverWSATFeature is enabled.
*
* @author Gytis Trikleris
*
* @param
*/
public class DisabledJTAOverWSATHandler extends AbstractJTAOverWSATHandler {
/**
* @see org.jboss.jbossts.txbridge.outbound.AbstractJTAOverWSATHandler#isContextPropagationEnabled(MessageContext)
*
* @return true if JTAOverWSATFeature is present and is enabled, false otherwise.
*/
@Override
protected boolean isContextPropagationEnabled(C context) {
return JTAOverWSATFeature.ENABLED_VALUE.equals(context.get(JTAOverWSATFeature.REQUEST_CONTEXT_KEY));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy