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 methods.
When false (the default), EMS obeys the JMS specification.
Remarks
According to the JMS specification, Close methods (that is, MessageConsumer.Close, Session.Close, Connection.Close) cannot return while a message callback (that is, EMSMessageHandler, IMessageListener.OnMessage) is running. As a result, a message callback must not call a Close method. Doing so may cause a deadlock.
This 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).
