Click or drag to resize

ServerChannelRollbackTransaction Method

Called when an exception is thrown while processing a transaction.

Namespace:  OBCOM.NetClient
Assembly:  OBCOM.NetClient (in OBCOM.NetClient.dll) Version: 40.82.5945.17884 (40.82.5945.17884)
Syntax
public virtual void RollbackTransaction(
	string name,
	Object context,
	Exception exception
)

Parameters

name
Type: SystemString
The name of the transaction.
context
Type: SystemObject
The user-defined context object returned by the BeginTransaction(String, Message) method.
exception
Type: SystemException
The exception thrown during transaction processing.
Remarks

This can happen while executing BeginTransaction(String, Message), ProcessTransaction(String, Message) or CommitTransaction(String, Object). This method should execute termination logic common to all failed transactions, such as performing a database rollback. Any exceptions thrown by this method generate a

NAK
reply message.

This method is meant to be overriden by classes that extend {@code ServerChannel}. This default implementation uses the SendNakReply(Object) method to send a

NAK
reply message containing the error message of the exception.

See Also