/** * Tidy up the Transaction/Thread association before faults are thrown back to the client. * * @param messageContext unused * @return true on success, false on error */ public boolean handleFault(MessageContext messageContext) { txbridgeLogger.logger.trace("JaxWSTxInboundBridgeHandler.handleFault()"); return suspendTransaction(); }
/** * Process a message. Determines if it is inbound or outbound and dispatches accordingly. * * @param msgContext the context to process * @return true on success, false on error */ public boolean handleMessage(MessageContext msgContext) { txbridgeLogger.logger.trace("JaxWSTxInboundBridgeHandler.handleMessage()"); Boolean outbound = (Boolean)msgContext.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY); if (outbound == null) throw new IllegalStateException("Cannot obtain required property: " + MessageContext.MESSAGE_OUTBOUND_PROPERTY); return outbound ? handleOutbound(msgContext) : handleInbound(msgContext); }
/** * Tidy up the Transaction/Thread association before returning a message to the client. * * @param msgContext unused * @return true on success, false on error */ protected boolean handleOutbound(MessageContext msgContext) { txbridgeLogger.logger.trace("JaxWSTxInboundBridgeHandler.handleOutbound()"); return suspendTransaction(); }