WebSphere WebSphere Application Server Network Deployment, Version 6.1.x Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

The effect on producers or consumers of changing access to a bus destination

This topic describes the effect on producers or consumers of changing a bus destination 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.

Related tasks
Controlling whether applications can send or receive messages for a bus destination

Reference topic

Terms of use | Feedback


Timestamp icon Last updated: 26 February 2009
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.pmc.nd.multiplatform.doc/ref/rjo0022_.html

Copyright IBM Corporation 2004, 2009. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)