pfx-resources:load
Loads a selected resource in the exchange body or header so that it can be used in other components.
Properties
Option | Type | Default | Description |
---|---|---|---|
| Boolean | false | Determines whether to put the output value to the exchange header ('pfx-resources-data-output') or not. |
| string | Â | Name of the resource to load. |
Examples
<route>
<from uri="direct:test4"/>
<to uri="pfx-resources:load?name=schema&setToHeader=true"/>
<to uri="mock:result4"/>
</route>
We specify name (
schema
); the resource must exist, otherwise an exception is thrown.We specify
setToHeader
, which means that the route will set the data into the header 'pfx-resources-data-output'.
Â
<route>
<from uri="direct:test2"/>
<setHeader name="pfx-resources_name">
<constant>schema</constant>
</setHeader>
<to uri="pfx-resources:load"/>
<to uri="mock:result2"/>
</route>
We specify header (
pfx-resources_name
) with some value – the name of resource we want to load.The result is set to the exchange body because it is not specified otherwise.
IntegrationManager version 5.8.0