Showing results for 
Search instead for 
Did you mean: 

Placing a file in one of many directories at run time

Former Member
0 Kudos

Hi all,Good Evening Im doing a scenario (JDBC to FILE) in which there are six target directories present. Now,depending on some conditions the file will be placed in one of the target directories and we are required to do it dynamically.

can any one please suggest me a way to do place the file dynamically.

Thanks in advance,



Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

This can be handled in mapping.. write UDF as

DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);

DynamicConfigurationKey key = DynamicConfigurationKey.create("","Directory");

String strDirectory = "Dir1"

// here write your condition for dynamic Directory


return strDirectory;

Map this UDF to target structure..

Set Adapter Specific Message Attributes in File adapter.. Tick Directory

Former Member
0 Kudos


You can go for Enhanced receiver determination.

Check these links for that.

Check this blog,


Also check .... -

>Enhanced Interface determination.

/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination --->Customised XPath

Also check the following threads