Feb 1st, 2013, 02:32 AM
MongoDB and message headers
I'm confused by the MongoDB channel adapter implementations. As noted in the docs, they only store/read message payloads, but not headers. Is this a limitation of the current state of implementation and should/will be fixed? Or else what is the use case?
Are headers meant to be transient, and only available within one application?
Also: the message store implementation does store headers. Is a message store suitable for exchanging messages between two applications (by having a channel referencing an identical message store config in each application)?
Our use case is: use spring integration to couple independent services within our application, and use a header to communicate a tenant id. We use MongoDB channel adapters atm. as we are in early development stage, already build on MongoDB and want to delay the decision on a real message broker implementation (and the setup effort that comes with it).