我正在偶尔使用石英触发器来调用mybatis select
from( "quartz:'once a minute' )
.pollEnrich( "mybatis://selectItems?statementType=SelectList" )
.process ( ...
选择显示正确并正确运行在sql-debugger pad中。 (当前没有结果,因为表格为空)。
当石英触发器调用时,它启动poll-enrich,报告没有错误,但只是不断重新运行数据库上的select。 似乎没有结束它,它只是尽可能快地进行轮询和轮询。它永远不会到达过程点。我不知道它可能出现什么问题或解决这个问题。为什么它不止一次运行选择...就好像有些东西失败了它会再次尝试,但它不会给出任何错误信息,通常mybatis非常冗长而且有错误
我不知道如何解决这个问题......
这里只是一小部分日志的转储
DEBUG 2013-10-30 14:10:28,913 [EXEC] {Camel (camel-1) thread #7 - mybatis://selectItems} JdbcTransaction - Openning JDBC Connection
DEBUG 2013-10-30 14:10:28,913 [EXEC] {Camel (camel-1) thread #7 - mybatis://selectItems} JdbcTransaction - Resetting autocommit to true on JDBC Connection [jdbc:oracle:thin:@X:1234:Y, UserName=A, Oracle JDBC driver]
DEBUG 2013-10-30 14:10:28,913 [EXEC] {Camel (camel-1) thread #7 - mybatis://selectItems} JdbcTransaction - Closing JDBC Connection [jdbc:oracle:thin:@X:1234:Y, UserName=A, Oracle JDBC driver]
DEBUG 2013-10-30 14:10:29,428 [EXEC] {Camel (camel-1) thread #7 - mybatis://selectItems} JdbcTransaction - Openning JDBC Connection
DEBUG 2013-10-30 14:10:29,428 [EXEC] {Camel (camel-1) thread #7 - mybatis://selectItems} JdbcTransaction - Resetting autocommit to true on JDBC Connection [jdbc:oracle:thin:@X:1234:Y, UserName=A, Oracle JDBC driver]
DEBUG 2013-10-30 14:10:29,428 [EXEC] {Camel (camel-1) thread #7 - mybatis://selectItems} JdbcTransaction - Closing JDBC Connection [jdbc:oracle:thin:@X:1234:Y, UserName=A, Oracle JDBC driver]
DEBUG 2013-10-30 14:10:29,944 [EXEC] {Camel (camel-1) thread #7 - mybatis://selectItems} JdbcTransaction - Openning JDBC Connection
DEBUG 2013-10-30 14:10:29,944 [EXEC] {Camel (camel-1) thread #7 - mybatis://selectItems} JdbcTransaction - Resetting autocommit to true on JDBC Connection [jdbc:oracle:thin:@X:1234:Y, UserName=A, Oracle JDBC driver]
DEBUG 2013-10-30 14:10:29,944 [EXEC] {Camel (camel-1) thread #7 - mybatis://selectItems} JdbcTransaction - Closing JDBC Connection [jdbc:oracle:thin:@X:1234:Y, UserName=A, Oracle JDBC driver]
DEBUG 2013-10-30 14:10:30,460 [DBIM] {Camel (camel-1) thread #7 - mybatis://selectItems} JdbcTransaction - Openning JDBC Connection
DEBUG 2013-10-30 14:10:30,460 [EXEC] {Camel (camel-1) thread #7 - mybatis://selectItems} JdbcTransaction - Resetting autocommit to true on JDBC Connection [jdbc:oracle:thin:@X:1234:Y, UserName=A, Oracle JDBC driver]
DEBUG 2013-10-30 14:10:30,460 [EXEC] {Camel (camel-1) thread #7 - mybatis://selectItems} JdbcTransaction - Closing JDBC Connection [jdbc:oracle:thin:@X:1234:Y, UserName=A, Oracle JDBC driver]
答案 0 :(得分:0)
使用enrich而不是pollEnrich