Spel In Spring Integration
I m using annotations for configuring spring integration but i have a problem when i want my service url be configurable based on message payload.
Spel in spring integration. In most cases the root object is the message which has two properties headers and payload that allow such expressions as payload payload thing headers my header and so on. But now it s your turn please let us know what you think in the comments below of file a feature request in our jira. Configure spring integration spel in java config.
Spel provides some additional features such as method invocation and string templating functionality. Spring expression language spel you can configure many spring integration components by using expressions written in the spring expression language. Currently we are investigating a more tighter integration of spring security into spring data.
There are many expression languages available such as jsp el ognl mvel and jboss el. Spel is an exression language supporting the features of querying and manipulating an object graph at runtime. For example if you wish to extract a header property using the expression the following snippet will help.
You can use the expressions to evaluate the properties on headers and payloads. Current code looks like this.