Saturday, March 26, 2016

Weblogic Integration MQ Event Generators not polling and retrieving messages from MQ in a Weblogic clustered environment

PROBLEM



A WLI Event Generator appears not to be consuming messages from an MQ queue.

When there is just one managed server running in a cluster, the Event Generator is retrieving the
messages from MQ.
But as soon as the second managed server is started in the cluster, the Event Generator gets redeployed (suspended for the time the second server is in process of starting and becomes running once the second server is running) and after that it stops picking the messages until the Event Generator is suspended/resumed again at which point it will perform a one time retrieval of message from the queue.

Essentially in a clustered environment, as soon as a new managed server is added (beyond the very first one) into the cluster Event Generator seems to start having problems and it stops polling messages from queue.


CAUSE


This is due to the fact that Server Affinity was disabled in the Connection Factory thus preventing the cluster from knowing which server would process the messages.

Changing the Server Affinity to "true" resolved this issue.

SOLUTION


1. Enable the server affinity for this connection factory or create a new connection factory with this
enabled
2. Create a new MQ Event Generator that uses this new connection factory
3. Restart admin and managed servers
4. Test the scenario again and make sure messages get processed.

Hope above helps in fixing above mentioned issue related to Event Generators in WLI, please leave your feedback or query.

No comments:

Post a Comment