Show / Hide Table of Contents

    Class NetTxSession

    Inheritance
    System.Object
    Session
    NetTxSession
    Implements
    IDispatcher
    Apache.NMS.INetTxSession
    Apache.NMS.ISession
    System.IDisposable
    Inherited Members
    Session.disposed
    Session.closed
    Session.closing
    Session.clearInProgress
    Session.TransactionStartedListener
    Session.TransactionCommittedListener
    Session.TransactionRolledBackListener
    Session.MaximumPendingMessageLimit
    Session.DispatchAsync
    Session.Exclusive
    Session.Retroactive
    Session.Priority
    Session.Connection
    Session.SessionId
    Session.TransactionContext
    Session.RequestTimeout
    Session.Transacted
    Session.AcknowledgementMode
    Session.IsClientAcknowledge
    Session.IsDupsOkAcknowledge
    Session.IsIndividualAcknowledge
    Session.Executor
    Session.NextDeliveryId
    Session.DisposeStopTimeout
    Session.CloseStopTimeout
    Session.ConsumerTransformer
    Session.ProducerTransformer
    Session.Dispose()
    Session.Dispose(Boolean)
    Session.CreateProducer()
    Session.CreateProducer(IDestination)
    Session.CreateConsumer(IDestination)
    Session.CreateConsumer(IDestination, String)
    Session.CreateConsumer(IDestination, String, Boolean)
    Session.CreateDurableConsumer(ITopic, String, String, Boolean)
    Session.DeleteDurableConsumer(String)
    Session.CreateBrowser(IQueue)
    Session.CreateBrowser(IQueue, String)
    Session.GetQueue(String)
    Session.GetTopic(String)
    Session.CreateTemporaryQueue()
    Session.CreateTemporaryTopic()
    Session.DeleteDestination(IDestination)
    Session.CreateMessage()
    Session.CreateTextMessage()
    Session.CreateTextMessage(String)
    Session.CreateMapMessage()
    Session.CreateBytesMessage()
    Session.CreateBytesMessage(Byte[])
    Session.CreateStreamMessage()
    Session.CreateObjectMessage(Object)
    Session.Commit()
    Session.Rollback()
    Session.Recover()
    Session.AddConsumer(MessageConsumer)
    Session.RemoveConsumer(MessageConsumer)
    Session.AddProducer(MessageProducer)
    Session.RemoveProducer(ProducerId)
    Session.GetNextConsumerId()
    Session.GetNextProducerId()
    Session.Stop()
    Session.Start()
    Session.Started
    Session.Dispatch(MessageDispatch)
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Apache.NMS.ActiveMQ
    Assembly: Apache.NMS.ActiveMQ.dll
    Syntax
    public sealed class NetTxSession : Session, IDispatcher, INetTxSession, ISession, IDisposable

    Constructors

    | Improve this Doc View Source

    NetTxSession(Connection, SessionId)

    Declaration
    public NetTxSession(Connection connection, SessionId id)
    Parameters
    Type Name Description
    Connection connection
    SessionId id

    Properties

    | Improve this Doc View Source

    EnlistsMsDtcNativeResource

    Declaration
    public bool EnlistsMsDtcNativeResource { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    IsAutoAcknowledge

    Declaration
    public override bool IsAutoAcknowledge { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    Session.IsAutoAcknowledge
    | Improve this Doc View Source

    IsTransacted

    Reports Transacted whenever there is an Ambient Transaction or the internal TransactionContext is still involed in a .NET Transaction beyond the lifetime of an ambient transaction (can happen during a scoped transaction disposing without Complete being called and a Rollback is in progress.)

    Declaration
    public override bool IsTransacted { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    Session.IsTransacted

    Methods

    | Improve this Doc View Source

    Close()

    Declaration
    public override void Close()
    Overrides
    Session.Close()
    | Improve this Doc View Source

    CreateTransactionContext()

    Declaration
    protected override TransactionContext CreateTransactionContext()
    Returns
    Type Description
    TransactionContext
    Overrides
    Session.CreateTransactionContext()
    | Improve this Doc View Source

    Enlist(Transaction)

    Manually Enlists in the given Transaction. This can be used to when the client is using the Session in Asynchronous listener mode since the Session cannot atuomatically join in this case as there is no Ambient transaction in the Message Dispatch thread. This also allows for clients to use the explicit exception model when necessary.

    Declaration
    public void Enlist(Transaction tx)
    Parameters
    Type Name Description
    System.Transactions.Transaction tx

    Implements

    IDispatcher
    Apache.NMS.INetTxSession
    Apache.NMS.ISession
    System.IDisposable
    • Improve this Doc
    • View Source
    Back to top Copyright � 2005-2019 Apache Software Foundation project
    Generated by DocFX