开发者

Configuring JMS over a Weblogic Cluster

I have a setup of 2 WLS managed servers configured as part of a WLS cluster.

1) The requirement is to send requests to another system and receive responses using JMS as interface.

2) The request could originate from either of the Managed Servers. So the corresponding response should reach the managed server which originated the request.

3) The external开发者_高级运维 system (to which requests are sent) should not be aware of how many managed servers are in the cluster (not a must have requirement)

How should JMS be configured for meeting these requirments?


Simple! Setup a response queue for each managed server and add a "reply-to" field in the messages you send to the other system. The other system will then ask the request where to send the reply. Deploy one Message Driven Bean (MDB) on each managed server (i.e. not on the cluster, one per managed server) to consume reply messages send to reply queues. Note that you might want to use clustered reply queues and persistent messages for load balancing and failover.

This is actually a combination of the Request-Reply and the Return Address patterns and is illustrated by the picture below:

Configuring JMS over a Weblogic Cluster

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜