有没有办法在Java代码中检索“global-property”元素的值?
<mule xmlns="http://www.mulesoft.org/schema/mule/core">
<global-property name="theKey" value="theValue" />
</mule>
我正在使用Mule 3.2.1。感谢。
答案 0 :(得分:3)
此:
MuleContext muleContext = ...
muleContext.getRegistry().get("theKey");