cancel
Showing results for 
Search instead for 
Did you mean: 

Using dynamic configuration to modify parameter in sender channel?

alancecchini
Participant
0 Kudos

Hi,

I would like to be able to set the filename in an SFTP sender communication channel (based upon a name determined at runtime, which is read from another file).

My understanding is that parameters set in dynamic configuration can only be set as part of mapping therefore I cannot see how to set these before my sender communication channel is invoked.

Please can someone confirm if there is a method of achieving this requirement.

Thanks,

Alan

Accepted Solutions (0)

Answers (2)

Answers (2)

udo_martens
Active Contributor
0 Kudos

Hi Alan,

dynamic configuration is not providing sucsess here as your process is started by the sftp adapter.

William Li described in his 3 part blog

[Directory API Development - Part 1 of 3|https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/11655] [original link is broken] [original link is broken] [original link is broken];

how to configure and control adapter properties during runtime by another interface/process.

Regards,

Udo

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>My understanding is that parameters set in dynamic configuration can only be set as part of mapping therefore I cannot see how to set these before my sender communication channel is invoked.

they can be set anywhere in the message flow - in adapter modules too for example

>>>I would like to be able to set the filename in an SFTP sender communication channe

you cannot set it before the adapter starts polling from anything else

what you can do is to create a file -> java proxy (sftp) - anything flow

read this another file first -> call SFTP from a java proxy in a sync way to fetch the second file using the name from the first one -> do anything else what you need

you can also do the same with one adapter - axis (put the file fetching and sftp call inside one class)

but it requires some java knowledge - but it would work in one sender adapter in this case

Regards,

Michal Krawczyk