The INetTxSession type exposes the following members.
Methods
Name | Description | |
---|---|---|
Close |
Closes the session. There is no need to close the producers and consumers
of a closed session.
(Inherited from ISession.) | |
Commit |
If this is a transactional session then commit all message
send and acknowledgements for producers and consumers in this session
(Inherited from ISession.) | |
CreateBrowser(IQueue) |
Creates a QueueBrowser object to peek at the messages on the specified queue.
(Inherited from ISession.) | |
CreateBrowser(IQueue, String) |
Creates a QueueBrowser object to peek at the messages on the specified queue
using a message selector.
(Inherited from ISession.) | |
CreateBytesMessage()()()() |
Creates a new binary message
(Inherited from ISession.) | |
CreateBytesMessage(array<Byte>[]()[][]) |
Creates a new binary message with the given body
(Inherited from ISession.) | |
CreateConsumer(IDestination) |
Creates a consumer of messages on a given destination
(Inherited from ISession.) | |
CreateConsumer(IDestination, String) |
Creates a consumer of messages on a given destination with a selector
(Inherited from ISession.) | |
CreateConsumer(IDestination, String, Boolean) |
Creates a consumer of messages on a given destination with a selector
(Inherited from ISession.) | |
CreateDurableConsumer |
Creates a named durable consumer of messages on a given destination with a selector
(Inherited from ISession.) | |
CreateMapMessage |
Creates a new Map message which contains primitive key and value pairs
(Inherited from ISession.) | |
CreateMessage |
Creates a new message with an empty body
(Inherited from ISession.) | |
CreateObjectMessage |
Creates a new Object message containing the given .NET object as the body
(Inherited from ISession.) | |
CreateProducer()()()() |
Creates a producer of messages
(Inherited from ISession.) | |
CreateProducer(IDestination) |
Creates a producer of messages on a given destination
(Inherited from ISession.) | |
CreateStreamMessage |
Creates a new stream message
(Inherited from ISession.) | |
CreateTemporaryQueue |
Creates a temporary queue
(Inherited from ISession.) | |
CreateTemporaryTopic |
Creates a temporary topic
(Inherited from ISession.) | |
CreateTextMessage()()()() |
Creates a new text message with an empty body
(Inherited from ISession.) | |
CreateTextMessage(String) |
Creates a new text message with the given body
(Inherited from ISession.) | |
DeleteDestination |
Delete a destination (Queue, Topic, Temp Queue, Temp Topic).
(Inherited from ISession.) | |
DeleteDurableConsumer |
Deletes a durable consumer created with CreateDurableConsumer().
(Inherited from ISession.) | |
Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | |
Enlist |
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.
| |
GetQueue |
Returns the queue for the given name
(Inherited from ISession.) | |
GetTopic |
Returns the topic for the given name
(Inherited from ISession.) | |
Recover |
Stops all Message delivery in this session and restarts it again
with the oldest unabcknowledged message. Messages that were delivered
but not acknowledge should have their redelivered property set.
This is an optional method that may not by implemented by all NMS
providers, if not implemented an Exception will be thrown.
Message redelivery is not requried to be performed in the original
order. It is not valid to call this method on a Transacted Session.
(Inherited from ISession.) | |
Rollback |
If this is a transactional session then rollback all message
send and acknowledgements for producers and consumers in this session
(Inherited from ISession.) |
Extension Methods
Name | Description | |
---|---|---|
CreateXmlMessage |
Extension function to create a text message from an object. The object must be serializable to XML.
(Defined by SessionExtensions.) | |
DeleteDestination(String) | Overloaded.
Extension function to delete the named destination by parsing the embedded type prefix. Default is Queue if no prefix is
embedded in the destinationName.
(Defined by SessionExtensions.) | |
DeleteDestination(String, DestinationType) | Overloaded.
Extension function to delete the named destination by parsing the embedded type prefix.
(Defined by SessionExtensions.) | |
DeleteQueue |
Extension function to delete the named destination by parsing the embedded type prefix.
(Defined by SessionExtensions.) | |
DeleteTopic |
Extension function to delete the named destination by parsing the embedded type prefix.
(Defined by SessionExtensions.) | |
GetDestination(String) | Overloaded.
Extension function to get the destination by parsing the embedded type prefix. Default is Queue if no prefix is
embedded in the destinationName.
(Defined by SessionExtensions.) | |
GetDestination(String, DestinationType) | Overloaded.
Extension function to get the destination by parsing the embedded type prefix.
(Defined by SessionExtensions.) |
Properties
Name | Description | |
---|---|---|
AcknowledgementMode | (Inherited from ISession.) | |
ConsumerTransformer |
A Delegate that is called each time a Message is dispatched to allow the client to do
any necessary transformations on the received message before it is delivered.
The Session instance sets the delegate on each Consumer it creates.
(Inherited from ISession.) | |
ProducerTransformer |
A delegate that is called each time a Message is sent from this Producer which allows
the application to perform any needed transformations on the Message before it is sent.
The Session instance sets the delegate on each Producer it creates.
(Inherited from ISession.) | |
RequestTimeout | (Inherited from ISession.) | |
Transacted | (Inherited from ISession.) |
Events
Name | Description | |
---|---|---|
TransactionCommittedListener | (Inherited from ISession.) | |
TransactionRolledBackListener | (Inherited from ISession.) | |
TransactionStartedListener | (Inherited from ISession.) |