0
需要从套接字()读取数据,使用ibatis解析和写入数据库。这必须持续进行。不确定如何连续运行此过程。使用骆驼循环的想法。但它看起来像我们需要提及循环计数。在jboss保险丝上使用骆驼路由连续运行一个循环
<route id="vts-data">
<from uri="timer://runOnce?repeatCount=1" />
<doTry>
<loop>
<to uri="bean:vtsProcessor?method=extractLocations" />
<log message="Details List is : ${body}" />
</loop>
<choice>
<when>
<simple>${body.size} == 0</simple>
<log message="List is null ${body}" />
</when>
<otherwise>
<to uri="mybatisPromis:insertLocationData?statementType=SelectList" />
<log message="Details List is : ${body}" />
<choice>
<when>
<simple>${body.size} == 0</simple>
<log message="Details List is null : ${body}" />
</when>
<otherwise>
<log message="Details List is : ${body}" />
</otherwise>
</choice>
</otherwise>
</choice>
<doCatch>
<exception>java.lang.Exception</exception>
</doCatch>
<doFinally>
<to uri="log:body" />
</doFinally>
</doTry>
</route>
我是新来的骆驼和保险丝。认为使用工作线程连续运行过程,但不是运气。需要一些指针来做优化的方法。