[resolved] Access exchange / context object from cMap
Hi Team,
I've come across a scenario where i have to access the context parameters in the cMap component.
I've used bean class using the parameterised constructor to set the values in instance variable and the same i accessed from java static method.
Is there any other way to access the same? The problem with this method i ESB container needs to be restarted completely to initialize these variables.
Jeeva
Hello Jeeva ,
You would need to set context variable as exchange property like a header before you pass to cMap . And in actual map in TDM , you would use GetMapProperty function and just give your context variable name. See attached screenshots.
Hello Jeeva ,
You would need to set context variable as exchange property like a header before you pass to cMap . And in actual map in TDM , you would use GetMapProperty function and just give your context variable name. See attached screenshots.