You can access the system properties inside the ESB / proxy sequences using the broker script as follows:
<script language="js">mc.setProperty("file.separator",java.lang.System.getProperty("file.separator"));</script> <log level="custom"> <property name="file.separator" expression="get-property('file.separator')"/> </log>
Here, the "file.separator" property is set as a property in the context of the message inside the mediator script and can be used in subsequent mediators.
You can also access the properties defined in the file in the ESB registry. For example, if you have a file in the configuration registry (test.xml) with the following content,
<a>Helloo<b>World</b></a>
The text element "World" in <b> can be obtained using the property broker as follows:
<property name="test" expression="get-property('registry','conf:/test.xml')" scope="default" type="OM"/> <log level="custom"> <property name="test.b" expression="$ctx:test//b"/> </log>
source share