[英]Configuration Of JMS Connection Factories For Spring Batch Partitioning On JBoss 5.2
我正在嘗試使用JBoss Messaging將Spring Batch / Spring Integration與JBoss 5.2集成。 我目前正在使用jms-ds.xml中定義的連接工廠的JNDI查找來訪問連接工廠。
<jee:jndi-lookup id="springbatch.jmsConnectionFactory" jndi-name="${springbatch.partition.jms.connectionFactoryName}"/>
在正常級別進行日志記錄后,它似乎可以正常啟動(大多數情況下)。 我打開日志記錄來確定與JMS系統的連接失敗的問題,並且在server.log文件中看到此異常
2014-12-29 10:16:26,396 DEBUG [org.springframework.batch.core.configuration.support.JobRegistryBeanPostProcessor] (HDScanner) Registering job: partitioned.job.1
2014-12-29 10:16:26,416 DEBUG [org.springframework.integration.util.MessagingMethodInvokerHelper] (HDScanner) Method [public java.util.Collection org.springframework.batch.integration.partition.MessageChannelPartitionHandler.handle(org.springframework.batch.core.partition.StepExecutionSplitter,org.springframework.batch.core.StepExecution) throws java.lang.Exception] is not eligible for Message handling.
java.lang.IllegalArgumentException: Found more than one parameter type candidate: [org.springframework.batch.core.partition.StepExecutionSplitter] and [org.springframework.batch.core.StepExecution]
at org.springframework.util.Assert.isNull(Assert.java:89)
基於其他一些發布,我嘗試用SingleConnectionFactory包裝JNDI返回的Connection Factory並得到相同的結果。
在JBoss上為分區的Spring Batch作業配置連接工廠的推薦方法是什么?
當Spring Integration試圖為聚合器發現合格的方法時,這是一條DEBUG消息。 這不是錯誤,可以忽略。
將org.springframework.integration.util.MessagingMethodInvokerHelper
的日志級別設置為INFO以取消顯示。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.