I have a jms-message-driven-channel-adapter receiving messages from a Queue. I am passing the message to a router which based on some parameter is sending the messages to spring beans configured as Service Activators.
I want the messages to be removed from the JMS queue only after the spring beans have processed the message. Else the message should not be removed the the queue.
I tried putting all the above flow inside the chain but the jms-adapter is not compatible with the chain. I am new to spring-integration. Please let me know how to implement this.