This topic describes the effect on producers or consumers of changing a bus destinations to prevent sending or receiving or messages.
You can use the Receive allowed and Send allowed properties of destinations to control the access to destinations. When you save changes to those properties, this affects open producers and consumers attached to localization points for that destination. For each producer or consumer, any existing operations are allowed to complete (except for one case, described below). The producer or consumer then undergoes a state change to conform to the destination, and subsequent operations will fail with an exception. The exception message indicates the specific reason for the exception; that is, that the destination no longer accepts sending or receiving of messages.
The only case where this behavior does not occur is the receiveWithWait() method. Blocking receives are cancelled when the state change to the consumer is made, and an exception is thrown. So, a receiveWithWait() method that is outstanding at the time of the configuration change is not allowed to complete, although the exception still occurs asynchronously with the configuration change.