Tibems.GetAllowCloseInCallback


Method

Declaration

static bool GetAllowCloseInCallback(); 

Purpose

Determine whether client callbacks may call close methods.

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.

Tibems.SetAllowCloseInCallback 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 replaces the deprecated method GetAllowCallbackInClose.

See Also

Tibems.SetAllowCloseInCallback


TIBCO Enterprise Message Service™ .NET Reference
System Release 4.3, February 2006
Copyright © TIBCO Software Inc. All rights reserved
www.tibco.com