/** * 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; }
/** * Return an InboundBridge instance that maps the current Thread's WS transaction context * to a JTA context. Control of the latter is provided by the returned instance. * * @return an InboundBridge corresponding to the calling Thread's current WS-AT transaction context. * @throws WrongStateException * @throws UnknownTransactionException * @throws com.arjuna.wst.SystemException * @throws AlreadyRegisteredException */ public static InboundBridge getInboundBridge() throws XAException, WrongStateException, UnknownTransactionException, com.arjuna.wst.SystemException, javax.transaction.SystemException, AlreadyRegisteredException { txbridgeLogger.logger.trace("InboundBridgeManager.getInboundBridge()"); String externalTxId = UserTransactionFactory.userTransaction().toString(); if(!inboundBridgeMappings.containsKey(externalTxId)) { createMapping(externalTxId); } return inboundBridgeMappings.get(externalTxId); }
private void cleanupRefs() { txbridgeLogger.logger.trace("BridgeDurableParticipant.cleanupRefs()"); org.jboss.jbossts.txbridge.inbound.InboundBridgeManager.removeMapping(externalTxId); isAwaitingRecovery = false; } }
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);