Hi, Whether the target directory is going to be static one i.e. /env/error ?
In the Request pipeline of the Routing activity or Service Call-out, add a Transport Header activity.
Then set the jca.file.Directory to a value, as follows:
You would type in the property. A set of possible values can be found if you do the same in an Invoke activity in BPEL:
So, using a Transport Header activity, you can also set the FileName.