public void rollback () throws UnknownTransactionException, SecurityException, SystemException, WrongStateException { try { abortWithoutAck(); } catch (SystemException ex) { throw ex; } finally { tidyup(); } }
/** * Start a new subordinate transaction with the specified timeout as its lifetime. * If an AT transaction is not currently associated with this thread then the * WrongStateException will be thrown. */ public void begin (int timeout) throws WrongStateException, SystemException { ((UserTransactionImple)UserTransactionImple.getUserTransaction()).beginSubordinate(timeout); }
public void commit () throws TransactionRolledBackException, UnknownTransactionException, SecurityException, SystemException, WrongStateException { try { commitWithoutAck(); } catch (SystemException ex) { throw ex; } finally { tidyup(); } }
public void begin (int timeout) throws WrongStateException, SystemException { try { if (_ctxManager.currentTransaction() != null) throw new WrongStateException(); Context ctx = startTransaction(timeout, null); _ctxManager.resume(new TxContextImple(ctx)); enlistCompletionParticipants(); } catch (com.arjuna.wsc.InvalidCreateParametersException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (com.arjuna.wst.UnknownTransactionException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (SystemException ex) { tidyup(); throw ex; } }
Context ctx = startTransaction(timeout, currentImple); tidyup(); tidyup(); tidyup();
public String transactionIdentifier() { return UserTransactionImple.getUserTransaction().transactionIdentifier(); } }
/** * fetch the coordination context type stashed in the current AT context implememtation * and use it to construct an instance of the coordination context extension type we need to * send down the wire to the activation coordinator * @param current the current AT context implememtation * @return an instance of the coordination context extension type */ private CoordinationContext getContext(TxContextImple current) { CoordinationContextType contextType = getContextType(current); CoordinationContext context = new CoordinationContext(); context.setCoordinationType(contextType.getCoordinationType()); context.setExpires(contextType.getExpires()); context.setIdentifier(contextType.getIdentifier()); context.setRegistrationService(contextType.getRegistrationService()); return context; }
final W3CEndpointReference completionParticipant = getCompletionParticipant(id, currentTx.isSecure()); W3CEndpointReference completionCoordinator = null;
final CoordinationContext currentContext = (current != null ? getContext(current) : null); final CoordinationContextType coordinationContext = ActivationCoordinator.createCoordinationContext( _activationCoordinatorService, messageId, AtomicTransactionConstants.WSAT_PROTOCOL, expires, currentContext) ;
public void begin (int timeout) throws WrongStateException, SystemException { try { if (_ctxManager.currentTransaction() != null) throw new WrongStateException(); Context ctx = startTransaction(timeout, null); _ctxManager.resume(new TxContextImple(ctx)); enlistCompletionParticipants(); } catch (com.arjuna.wsc.InvalidCreateParametersException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (com.arjuna.wst.UnknownTransactionException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (SystemException ex) { tidyup(); throw ex; } }
Context ctx = startTransaction(timeout, currentImple); tidyup(); tidyup(); tidyup();
public String transactionIdentifier() { return UserTransactionImple.getUserTransaction().transactionIdentifier(); } }
/** * fetch the coordination context type stashed in the current AT context implememtation * and use it to construct an instance of the coordination context extension type we need to * send down the wire to the activation coordinator * @param current the current AT context implememtation * @return an instance of the coordination context extension type */ private CoordinationContext getContext(TxContextImple current) { CoordinationContextType contextType = getContextType(current); CoordinationContext context = new CoordinationContext(); context.setCoordinationType(contextType.getCoordinationType()); context.setExpires(contextType.getExpires()); context.setIdentifier(contextType.getIdentifier()); context.setRegistrationService(contextType.getRegistrationService()); return context; }
final W3CEndpointReference completionParticipant = getCompletionParticipant(id, currentTx.isSecure()); W3CEndpointReference completionCoordinator = null;
final CoordinationContext currentContext = (current != null ? getContext(current) : null); final CoordinationContextType coordinationContext = ActivationCoordinator.createCoordinationContext( _activationCoordinatorService, messageId, AtomicTransactionConstants.WSAT_PROTOCOL, expires, currentContext) ;
public void begin (int timeout) throws WrongStateException, SystemException { try { if (_ctxManager.currentTransaction() != null) throw new WrongStateException(); Context ctx = startTransaction(timeout, null); _ctxManager.resume(new TxContextImple(ctx)); enlistCompletionParticipants(); } catch (com.arjuna.wsc.InvalidCreateParametersException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (com.arjuna.wst.UnknownTransactionException ex) { tidyup(); throw new SystemException(ex.toString()); } catch (SystemException ex) { tidyup(); throw ex; } }
/** * Start a new subordinate transaction with the specified timeout as its lifetime. * If an AT transaction is not currently associated with this thread then the * WrongStateException will be thrown. */ public void begin (int timeout) throws WrongStateException, SystemException { ((UserTransactionImple)UserTransactionImple.getUserTransaction()).beginSubordinate(timeout); }
public void rollback () throws UnknownTransactionException, SecurityException, SystemException, WrongStateException { try { abortWithoutAck(); } catch (SystemException ex) { throw ex; } finally { tidyup(); } }
public void commit () throws TransactionRolledBackException, UnknownTransactionException, SecurityException, SystemException, WrongStateException { try { commitWithoutAck(); } catch (SystemException ex) { throw ex; } finally { tidyup(); } }
Context ctx = startTransaction(timeout, currentImple); tidyup(); tidyup(); tidyup();