[TIBCO.EMS .NET client library 8.1 documentation]

Sets if the Session.Close, Connection.Close or Connection.Stop methods can be called in the IMessageListener.OnMessage callback.

Namespace:  TIBCO.EMS
Assembly:  TIBCO.EMS (in TIBCO.EMS.dll)

Syntax

public static void SetAllowCloseInCallback(
	bool allow
)
Public Shared Sub SetAllowCloseInCallback ( _
	allow As Boolean _
)
public:
static void SetAllowCloseInCallback(
	bool allow
)

Parameters

allow
Type: System..::.Boolean

When true, EMS overrides the JMS specification so client callbacks may call Close or Stop methods.

When false (the default), EMS obeys the JMS specification.

Remarks

According to the JMS 2.0 specification, calling any of these methods must trigger an IllegalStateException. If this property is set then the Close or the Stop method can be called inside the callback and it will not throw an exception and will proceed without waiting for the same callback to return.
Note: This method replaces the deprecated method SetAllowCallbackInClose.

See Also