WSO2 ESB Multiple instances of proxy service

依然范特西╮ 提交于 2020-02-05 08:12:07

问题


We are using WSO2 ESB and as transport we have WebSphere MQ which is accessed using JMS. Problem is that each proxy service works in one thread with WebSphere MQ and because of that we have performance issues. How can we start multiple instances of proxy service without deploying multiple copies of it? Maybe there are some hidden configuration parameters?


回答1:


In addition to already mentioned parameter

<parameter name="transport.jms.ConcurrentConsumers">2</parameter>

you might need to add another one:

<parameter name="transport.jms.IdleTaskLimit">2147483647</parameter>

This parameter represents number of idle message read attempts per thread. When counter of such idle read attempts becomes equal to this parameter, the thread stops reading messages (if it is not the only reader).

Given that, setting this parameter to the upper limit of java int provides you with virtually infinite reading by all the threads.




回答2:


You should define this parameter in your proxy conf :

<parameter name="transport.jms.ConcurrentConsumers">2</parameter>

WSO2 use one consumer by default

Have a look there : http://mmalithh.blogspot.fr/2013_05_01_archive.html



来源:https://stackoverflow.com/questions/25180364/wso2-esb-multiple-instances-of-proxy-service

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!