Show / Hide Table of Contents

    Interface INetTxSession

    The INetTxSession interface extends the capability of Session by adding access to a NMS provider's support for the Distributed Transactions (optional). The transaction support leverages the .NET Frameworks System.Transactions API.

    The NMS Provider implements this interface by participating in the current ambient transaction as defined by the System.Transactions.Transaction.Current static member. Whenever a new Transaction is entered the NMS provider should enlist in that transaction. When there is no ambient transaction then the NMS Provider should allow the INetTxSession instance to behave as a session that is in Auto Acknowledge mode.

    Calling the Commit or Rollback methods on a INetTxSession instance should throw an exception as those operations are controlled by the Transaction Manager.

    The INetTxSession interface is optional. NMS providers are not required to support this interface. This interface is for use by NMS providers to support transactional environments.

    Inherited Members
    ISession.CreateProducer()
    ISession.CreateProducer(IDestination)
    ISession.CreateConsumer(IDestination)
    ISession.CreateConsumer(IDestination, String)
    ISession.CreateConsumer(IDestination, String, Boolean)
    ISession.CreateDurableConsumer(ITopic, String)
    ISession.CreateDurableConsumer(ITopic, String, String)
    ISession.CreateDurableConsumer(ITopic, String, String, Boolean)
    ISession.CreateSharedConsumer(ITopic, String)
    ISession.CreateSharedConsumer(ITopic, String, String)
    ISession.CreateSharedDurableConsumer(ITopic, String)
    ISession.CreateSharedDurableConsumer(ITopic, String, String)
    ISession.DeleteDurableConsumer(String)
    ISession.Unsubscribe(String)
    ISession.CreateBrowser(IQueue)
    ISession.CreateBrowser(IQueue, String)
    ISession.GetQueue(String)
    ISession.GetTopic(String)
    ISession.CreateTemporaryQueue()
    ISession.CreateTemporaryTopic()
    ISession.DeleteDestination(IDestination)
    ISession.CreateMessage()
    ISession.CreateTextMessage()
    ISession.CreateTextMessage(String)
    ISession.CreateMapMessage()
    ISession.CreateObjectMessage(Object)
    ISession.CreateBytesMessage()
    ISession.CreateBytesMessage(Byte[])
    ISession.CreateStreamMessage()
    ISession.Close()
    ISession.ConsumerTransformer
    ISession.ProducerTransformer
    ISession.Recover()
    ISession.Acknowledge()
    ISession.Commit()
    ISession.Rollback()
    ISession.TransactionStartedListener
    ISession.TransactionCommittedListener
    ISession.TransactionRolledBackListener
    ISession.RequestTimeout
    ISession.Transacted
    ISession.AcknowledgementMode
    System.IDisposable.Dispose()
    Namespace: Apache.NMS
    Assembly: Apache.NMS.dll
    Syntax
    public interface INetTxSession : ISession, IDisposable

    Properties

    | Improve this Doc View Source

    EnlistsMsDtcNativeResource

    Declaration
    bool EnlistsMsDtcNativeResource { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    | Improve this Doc View Source

    Enlist(Transaction)

    Enlist the Session in the specified Transaction.

    If the Session is already enlisted in a Transaction or there is an Ambient Transaction and the given TX is not that Transaction then an exception should be thrown.

    Declaration
    void Enlist(Transaction tx)
    Parameters
    Type Name Description
    System.Transactions.Transaction tx
    • Improve this Doc
    • View Source
    Back to top Copyright © 2005-2022 Apache Software Foundation project
    Generated by DocFX