[英]Spring Integration - Message Store configuration for Microsoft SQL Server 2012
I setup a MessageStore in Spring Integration using JDBC, following there's my configuration: 在完成配置后,我使用JDBC在Spring Integration中设置了MessageStore:
<bean id="queryProvider" class="org.springframework.integration.jdbc.store.channel.MySqlChannelMessageStoreQueryProvider" />
<!-- JDBC message store configuration -->
<bean id="store" class="org.springframework.integration.jdbc.store.JdbcChannelMessageStore">
<property name="dataSource" ref="basicDataSource" />
<property name="channelMessageStoreQueryProvider" ref="queryProvider" />
<property name="region" value="TX_TIMEOUT" />
<property name="usingIdCache" value="true" />
</bean>
My underlying DB is Microsoft SQL Server 2012 and when starting up the server I get the following exception: 我的基础数据库是Microsoft SQL Server 2012,启动服务器时出现以下异常:
nested exception is com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near 'LIMIT'.
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:83)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:80)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:605)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:639)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:664)
at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:704)
How can I fix this problem? 我该如何解决这个问题?
The best way to implement SqlServerChannelMessageStoreQueryProvider
and don't use MySqlChannelMessageStoreQueryProvider
, because those RDBMS vendors use different DML. 最好的实现SqlServerChannelMessageStoreQueryProvider
,不要使用MySqlChannelMessageStoreQueryProvider
,因为那些RDBMS供应商使用不同的DML。
Feel free to raise a JIRA ticket and even contribute ! 随意举起JIRA门票甚至捐款 !
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.