Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/390.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Spring入站通道适配器的最大值是多少?_Java_Spring_Jms_Spring Integration - Fatal编程技术网

Java Spring入站通道适配器的最大值是多少?

Java Spring入站通道适配器的最大值是多少?,java,spring,jms,spring-integration,Java,Spring,Jms,Spring Integration,我有一个spring集成配置文件,如: <int-jms:inbound-channel-adapter channel="fromjmsRecon" jms-template="jmsTemplate" destination-name="com.mycompany.inbound.recon"> <int:poller fixed-delay="3000" max-messages-per-poll="1"/>

我有一个spring集成配置文件,如:

<int-jms:inbound-channel-adapter
        channel="fromjmsRecon"
        jms-template="jmsTemplate"
        destination-name="com.mycompany.inbound.recon">
    <int:poller fixed-delay="3000" max-messages-per-poll="1"/>
</int-jms:inbound-channel-adapter>
<int:publish-subscribe-channel id="fromjmsRecon"/>
<int:service-activator input-channel="fromjmsRecon"
                       ref="processInboundReconFile"
                       method="execute"/>

... 10 More inbound channels ...

<int-jms:inbound-channel-adapter
        channel="fromjmsVanRecon"
        jms-template="jmsTemplate"
        destination-name="com.mycompany.inbound.another">
    <int:poller fixed-delay="3000" max-messages-per-poll="1"/>
</int-jms:inbound-channel-adapter>
<int:publish-subscribe-channel id="fromjmsVanRecon"/>
<int:service-activator input-channel="fromjmsVanRecon"
                       ref="processInboundAnother"
                       method="execute"/>

</beans>

... 还有10个入站频道。。。
有11个入站通道适配器。前10个连接到ActiveMQ,但第11个从未连接。这些适配器的列出顺序并不重要,第11个适配器总是被忽略。服务适配器已初始化,但通道适配器从未连接到ActiveMQ

入站通道适配器的数量是否有限制?是否有一个属性,我可以设置在某个地方,改变这个限制


感谢您的帮助。

正确,有一个名为
TaskScheduler
线程池的限制,大小为
10

<> P> >请考虑使用<代码> > Spring .TimeTask.PooStase属性更改其大小,使用“代码> TaskExtExuor < /COD>为那些适配器将任务转移到其他线程,不要吃昂贵的代码> TaskStalper-.P/> 还有另一种方法:不要使用
,而是切换到
,这是一种天生的倾听方式,而且效果更好