Skip to Content
Former Member
Apr 12, 2010 at 10:33 AM

Java Mapping PI 7.1 - Dynamic Configuration


Hi Everybody,

I have written a JAVA map and inside which I am reading file name from the header.

ASMA is also checked in the adapter.

I need to take the filename at runtime and pass it to a field.

Below is the piece of code I have written for Dynamic Configuration.

private Map param;

DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get("DynamicConfiguration");

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

String MyFileName = dynamicconfiguration.get(key);

I am getting a runtime error when I test the mapping (End to End).

Is something wrong with the code shown above?

Something specific needs to be done wrt PI 7.1??

Helpful Answers will be rewarded points.

Thanks & Regards,