Java Spring入站通道适配器的最大值是多少?
我有一个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"/>
<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/>
还有另一种方法:不要使用
,而是切换到
,这是一种天生的倾听方式,而且效果更好