Closes the QueueRequestor and its session.

Since a provider may allocate some resources on behalf of a QueueRequestor, clients should close them when they are not needed. Relying on garbage collection to eventually reclaim these resources may not be timely enough.

Note that this method closes the IQueueSession object passed to the QueueRequestor constructor.

Namespace:  Kaazing.JMS
Assembly:  Kaazing.JMS (in Kaazing.JMS.dll)

Syntax

Visual Basic
Public Sub Close
C#
public void Close()
Visual C++
public:
void Close()

Exceptions

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the JMS provider fails to close the QueueRequestor due to some internal error.

See Also