In Mule 3, I can have a string payload that consists of JSON and I can do expression language operations on it.
For example,
retrieves the job state and uses it for a routing descision.Code:expression="#[json:job/state]"
In Spring Integration, I have found that the expression language only seems to support java objects,
e.g.
If payload is a string, then I can only to String operations on it.Code:exchange-name-expression="payload"
The use case I have is that I want to dynamically route messages to a given exchange (in AMQP) based
on the message contents.
Is there support for this?
Obviously in my service, I could convert the JSON string to a Java JSONObject, but then the outbound adapter would have to serialize back.
Any other ideas would be welcome.
Earl


Reply With Quote
