public boolean equals (Object obj) { if (obj instanceof TxContextImple) { TxContextImple compare = (TxContextImple) obj; return compare.context().equals(_context); } else return false; }
public boolean equals (Object obj) { if (obj instanceof TxContextImple) { TxContextImple compare = (TxContextImple) obj; return compare.context().equals(_context); } else return false; }
public boolean equals (Object obj) { if (obj instanceof TxContextImple) { TxContextImple compare = (TxContextImple) obj; return compare.context().equals(_context); } else return false; }
/** * fetch the coordination context type stashed in the current BA context implememtation * @param current the current AT context implememtation * @return the coordination context type stashed in the current AT context implememtation */ private CoordinationContextType getContextType(TxContextImple current) { ContextImple contextImple = (ContextImple)current.context(); return contextImple.getCoordinationContext(); }
/** * fetch the coordination context type stashed in the current BA context implememtation * @param current the current AT context implememtation * @return the coordination context type stashed in the current AT context implememtation */ private CoordinationContextType getContextType(TxContextImple current) { ContextImple contextImple = (ContextImple)current.context(); return contextImple.getCoordinationContext(); }
/** * fetch the coordination context type stashed in the current BA context implememtation * @param current the current AT context implememtation * @return the coordination context type stashed in the current AT context implememtation */ private CoordinationContextType getContextType(TxContextImple current) { ContextImple contextImple = (ContextImple)current.context(); return contextImple.getCoordinationContext(); }
/** * fetch the coordination context type stashed in the current BA context implememtation * @param current the current AT context implememtation * @return the coordination context type stashed in the current AT context implememtation */ private CoordinationContextType getContextType(TxContextImple current) { ContextImple contextImple = (ContextImple)current.context(); return contextImple.getCoordinationContext(); }
/** * fetch the coordination context type stashed in the current BA context implememtation * @param current the current AT context implememtation * @return the coordination context type stashed in the current AT context implememtation */ private CoordinationContextType getContextType(TxContextImple current) { ContextImple contextImple = (ContextImple)current.context(); return contextImple.getCoordinationContext(); }
/** * fetch the coordination context type stashed in the current BA context implememtation * @param current the current AT context implememtation * @return the coordination context type stashed in the current AT context implememtation */ private CoordinationContextType getContextType(TxContextImple current) { ContextImple contextImple = (ContextImple)current.context(); return contextImple.getCoordinationContext(); }
public Element putCoordinationContext(Element headerElement) throws UnknownTransactionException, SystemException { resume(); final TxContextImple txContext = (TxContextImple) BusinessActivityManager.getBusinessActivityManager().currentTransaction(); CoordinationContextType ctx = txContext.context().getCoordinationContext(); try { Document doc = headerElement.getOwnerDocument(); Element coord = doc.createElementNS(CoordinationConstants.WSCOOR_NAMESPACE, CoordinationConstants.WSCOOR_ELEMENT_COORDINATION_CONTEXT); headerElement.appendChild(coord); CoordinationContextHelper.serialise(ctx, headerElement); Element parent = doc.createElementNS(CoordinationConstants.WSCOOR_NAMESPACE, CoordinationConstants.WSCOOR_ELEMENT_COORDINATION_CONTEXT); Node tmp = headerElement.getElementsByTagNameNS(CoordinationConstants.WSCOOR_NAMESPACE, CoordinationConstants.WSCOOR_ELEMENT_COORDINATION_CONTEXT).item(0); parent.appendChild(tmp.cloneNode(true)); headerElement.replaceChild(parent, tmp); } catch (Exception e) { e.printStackTrace(); throw new SystemException("Coordination context has not been added to the header."); } return headerElement; }
private W3CEndpointReference getTerminationCoordinatorRPC(final TxContextImple ctx) throws SystemException { final CoordinationContextType coordinationContext = ctx.context().getCoordinationContext() ; final String messageId = MessageId.getMessageId() ; try { return RegistrationCoordinator.register(coordinationContext, messageId, null, ArjunaTXConstants.WSARJTX_PROTOCOL_TERMINATION_RPC) ; } catch (final Throwable th) { throw new SystemException(wstxLogger.i18NLogger.get_mwlabs_wst11_ba_remote_UserBusinessActivityImple_3()); } }
private W3CEndpointReference getTerminationCoordinatorRPC(final TxContextImple ctx) throws SystemException { final CoordinationContextType coordinationContext = ctx.context().getCoordinationContext() ; final String messageId = MessageId.getMessageId() ; try { return RegistrationCoordinator.register(coordinationContext, messageId, null, ArjunaTXConstants.WSARJTX_PROTOCOL_TERMINATION_RPC) ; } catch (final Throwable th) { throw new SystemException(wstxLogger.i18NLogger.get_mwlabs_wst11_ba_remote_UserBusinessActivityImple_3()); } }
private W3CEndpointReference getTerminationCoordinatorRPC(final TxContextImple ctx) throws SystemException { final CoordinationContextType coordinationContext = ctx.context().getCoordinationContext() ; final String messageId = MessageId.getMessageId() ; try { return RegistrationCoordinator.register(coordinationContext, messageId, null, ArjunaTXConstants.WSARJTX_PROTOCOL_TERMINATION_RPC) ; } catch (final Throwable th) { throw new SystemException(wstxLogger.i18NLogger.get_mwlabs_wst11_ba_remote_UserBusinessActivityImple_3()); } }
throw new com.arjuna.wsc.NoActivityException(); final CoordinationContextType coordinationContext = currentTx.context().getCoordinationContext() ; final String messageId = MessageId.getMessageId() ; return RegistrationCoordinator.register(coordinationContext, messageId, participant, protocol) ;
throw new com.arjuna.wsc.NoActivityException(); final CoordinationContextType coordinationContext = currentTx.context().getCoordinationContext() ; final String messageId = MessageId.getMessageId() ; return RegistrationCoordinator.register(coordinationContext, messageId, participant, protocol) ;
throw new com.arjuna.wsc.NoActivityException(); final CoordinationContextType coordinationContext = currentTx.context().getCoordinationContext() ; final String messageId = MessageId.getMessageId() ; return RegistrationCoordinator.register(coordinationContext, messageId, participant, protocol) ;
private W3CEndpointReference getTerminationCoordinator(final TxContextImple ctx) throws SystemException { final CoordinationContextType coordinationContext = ctx.context().getCoordinationContext() ; final String messageId = MessageId.getMessageId() ; try { return RegistrationCoordinator.register(coordinationContext, messageId, getParticipantProtocolService(ctx.identifier(), ctx.isSecure()), com.arjuna.webservices.wsarjtx.ArjunaTXConstants.WSARJTX_PROTOCOL_TERMINATION) ; } catch (final Throwable th) { throw new SystemException(wstxLogger.i18NLogger.get_mwlabs_wst11_ba_remote_UserBusinessActivityImple_3()); } }
private W3CEndpointReference getTerminationCoordinator(final TxContextImple ctx) throws SystemException { final CoordinationContextType coordinationContext = ctx.context().getCoordinationContext() ; final String messageId = MessageId.getMessageId() ; try { return RegistrationCoordinator.register(coordinationContext, messageId, getParticipantProtocolService(ctx.identifier(), ctx.isSecure()), com.arjuna.webservices.wsarjtx.ArjunaTXConstants.WSARJTX_PROTOCOL_TERMINATION) ; } catch (final Throwable th) { throw new SystemException(wstxLogger.i18NLogger.get_mwlabs_wst11_ba_remote_UserBusinessActivityImple_3()); } }
private W3CEndpointReference getTerminationCoordinator(final TxContextImple ctx) throws SystemException { final CoordinationContextType coordinationContext = ctx.context().getCoordinationContext() ; final String messageId = MessageId.getMessageId() ; try { return RegistrationCoordinator.register(coordinationContext, messageId, getParticipantProtocolService(ctx.identifier(), ctx.isSecure()), com.arjuna.webservices.wsarjtx.ArjunaTXConstants.WSARJTX_PROTOCOL_TERMINATION) ; } catch (final Throwable th) { throw new SystemException(wstxLogger.i18NLogger.get_mwlabs_wst11_ba_remote_UserBusinessActivityImple_3()); } }
baContext = (txContext == null ? null : txContext.context()) ;