TIBCO Enterprise Message Service 4.3.0 .NET Client Class Library

Tibems.SetAllowCloseInCallback Method 

Sets if MessageConsumer.Close(), ISession.Close() or IConnection.Close() methods can be called in the IMessageListener callback.

public static void SetAllowCloseInCallback(
   bool allow
);

Remarks

According to the EMS specifications, calling any of those methods must wait for the MessageListener callback to return before the Close() method can return to the calling application. Consequently, if the Close() method is called inside the callback it causes a deadlock. If calling Close() inside the callback is allowed, then Close() method called inside the callback will not wait for the same callback to return.
For complete details, see the corresponding item in the book TIBCO Enterprise Message Service .NET Reference.

See Also

Tibems Class | TIBCO.EMS Namespace