[resolved] Access exchange / context object from cMap

Highlighted
Four Stars

[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

Accepted Solutions
Highlighted
Employee

Re: [resolved] Access exchange / context object from cMap

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.

View solution in original post


All Replies
Highlighted
Employee

Re: [resolved] Access exchange / context object from cMap

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.

View solution in original post

Highlighted
Four Stars

Re: [resolved] Access exchange / context object from cMap

Thank you so much for your reply. It works.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read