Problem
In a clustered environment, a queue topic is being retrieved multiple times by the subscribers. SOA clusters are typically homogenous (that is, each node has the same services running). Therefore, if a queue topic has multiple subscribers (say ServiceA & SeviceB) , then in a clustered environment, each service is running on every node. If it is a two-node cluster, then there are two instances of the serviceA and two instances of the serviceB, each of which retrieve the topic message. This is not desirable.
Solution
Set the consuming service singleton property to ensure that in a multinode environment, only one of the subscriber instances can consume the topic message.
[snippet]
<service name="ServiceA" ui:wsdlLocation="ServiceA
.wsdl">
<interface.wsdl
interface="---------------------------------------------"/>
<binding.jca config="ServiceA
_jms.jca">
<property name="singleton">true</property>
</binding.jca>
</service>
[snippet]
0 comments:
Post a Comment