[TIBCO.EMS .NET client library 7.0 documentation]

Determine whether client callbacks may call close methods

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

Syntax

public static bool GetAllowCloseInCallback()
Public Shared Function GetAllowCloseInCallback As Boolean
public:
static bool GetAllowCloseInCallback()

Remarks

According to the JMS specification, Close methods (that is, MessageConsumer.Close, Session.Close, Connection.Close) cannot return while any message callbacks (that is, EMSMessageHandler, IMessageListener.OnMessage) are running. As a result, a message callback must not call a Close method, lest it cause a deadlock. The SetAllowCloseInCallback method explicitly overrides this JMS requirement, permitting callbacks to call Close without deadlock (that is, embedded Close calls do not wait for callbacks to return).

This method returns, if it is allowed to call Close in callbacks.

See Also