I have an existing spring service which performs some internal setup, returns an acknowledgement and then (asyc) calls out to an external system. This system will then periodically call back with information.
The current service is wired using persistent JMS to hand back to a webservice gateway. I wish to decouple this to allow other internal services to also call my existing service. I think that spring integration looks a very good candidate to help me.
My question is - how best to configure my channels so that I can route back to the appropriate client service (either to a web gateway or to my internal service).
I can see that we could provide some channel information in a header and use a header based router - but this information would need to be persisted to survive recovery, and this would seem to make the spring service aware of the integration pipes?
Thanks for any assistance.