骡子3:如何从Java源代码中获取“global-property”元素的值

时间:2012-05-14 18:04:00

标签: java mule

有没有办法在Java代码中检索“global-property”元素的值?

<mule xmlns="http://www.mulesoft.org/schema/mule/core">
  <global-property name="theKey" value="theValue" />
</mule>

我正在使用Mule 3.2.1。感谢。

1 个答案:

答案 0 :(得分:3)

此:

MuleContext muleContext = ...
muleContext.getRegistry().get("theKey");