1
votes

I have a question regarding the behavior of a jdbc message store. I notice that if a failure occurs for instance if the following sequence is followed: 1)inbound-channel-adapter - Creates a message payload and sends it to a channel 2)The channel is polled for the payload by a jms:outbound-channel-adapter which adds an entry in the JMS queue. I am using ActiveMQ.

When I test for a situation like shutting down the MOM I would like to persist the message in the message-store, but this is not the default behavior. Looks like SI processes the payload in the channel and then pushes it out (deletes it from the store). I can see the message being inserted in the message-store in the database.

Am I wrong in understanding the function of a message-store? I thought that the message would persist until a successful run. Thanks for any feedback.

1

1 Answers

0
votes

You need to set up durable subscriptions for that. I think most of the SI JMS components do support that.