thank oleg for quick answers.
Here is my config of using jdbcmessagestore:
Code:
<int:poller default="true" max-messages-per-poll="1" fixed-rate="2000">
</int:poller>
<int:channel id="dbBackedChannel">
<int:queue capacity="10" message-store="messageStore" />
</int:channel>
<int-jdbc:message-store id="messageStore" data-source="myDataSource"/>
<bean id="myDataSource" class="com.mchange.v2.c3p0.ComboPooledDataSource" destroy-method="close">
<property name="driverClass" value="com.mysql.jdbc.Driver"/>
<property name="jdbcUrl" value="jdbc:mysql://127.0.0.1:3306/test"/>
<property name="user" value="ude"/>
<property name="password" value="ude"/>
<property name="initialPoolSize"><value>2</value></property>
<property name="minPoolSize"><value>1</value></property>
<property name="maxPoolSize"><value>50</value></property>
<property name="maxIdleTime"><value>1200</value></property>
<property name="checkoutTimeout"><value>20000</value></property>
</bean>
<int:service-activator input-channel="dbBackedChannel"ref="messageHandler"></int:service-activator>
<int:inbound-channel-adapter channel="dbBackedChannel"
ref="messageProducer" method="produceMessage">
</int:inbound-channel-adapter>
And I have execute the ddl in database. Now It works fine, the message is stored in the table INT_MESSAGE_GROUP