/** * Process inbound messages by mapping the WS transaction context * to a JTA one and associating the latter to the current Thread. * * @param msgContext unused * @return true on success, false on error */ protected boolean handleInbound(MessageContext msgContext) { txbridgeLogger.logger.trace("JaxWSTxInboundBridgeHandler.handleInbound()"); try { inboundBridge = org.jboss.jbossts.txbridge.inbound.InboundBridgeManager.getInboundBridge(); inboundBridge.start(); } catch (Exception e) { txbridgeLogger.logger.error(e); return false; } return true; }
InboundBridge txInboundBridge = InboundBridgeManager.getInboundBridge(); txInboundBridge.start(); return true;
InboundBridge txInboundBridge = InboundBridgeManager.getInboundBridge(); txInboundBridge.start(); return true;
private void bridgeOutgoingTransaction() { try { // disassociate subordinate JTA transaction InboundBridge txInboundBridge = InboundBridgeManager.getInboundBridge(); txInboundBridge.stop(); // disassociate WS-AT transaction final com.arjuna.mw.wst11.TransactionManager wsatManager = TransactionManagerFactory.transactionManager(); if (wsatManager != null) { wsatManager.suspend(); } } catch (final Throwable th) { throw new SwitchYardException(th); } }
private void bridgeOutgoingTransaction() { try { // disassociate subordinate JTA transaction InboundBridge txInboundBridge = InboundBridgeManager.getInboundBridge(); txInboundBridge.stop(); // disassociate WS-AT transaction final com.arjuna.mw.wst11.TransactionManager wsatManager = TransactionManagerFactory.transactionManager(); if (wsatManager != null) { wsatManager.suspend(); } } catch (final Throwable th) { throw new SwitchYardException(th); } }
InboundBridge inboundBridge = InboundBridgeManager.getInboundBridge(externalTxId);