如何读取mule esb中的参数

Man*_*ngh 4 java mule mule-el mule-module-jpa mule-component

我正在向mule发送一些参数,它正在通过我发送的8081中的http入站进行监听.

http://localhost:8081/hey?age=manoj
Run Code Online (Sandbox Code Playgroud)

但我不知道我怎么能从消息中得到这个?我知道我可以从消息和有效负载访问它,但是当我尝试这样做时

#[message payload: ['age']]
Run Code Online (Sandbox Code Playgroud)

我收到错误,有效载荷是一个字符串类型,我非常混淆骡子.我想要年龄价值.

Ani*_*ary 7

如果您使用的是Mule 3.6或更高版本,则表达式已更改.
现在,您需要以下表达式来获取值: -

#[message.inboundProperties.'http.query.params'.age]
Run Code Online (Sandbox Code Playgroud)

您可以在这里找到您的查询参考: - https://developer.mulesoft.com/docs/display/current/HTTP+Listener+Connector