Talend mediation route: how to persist a variable between exchanges

Six Stars

Talend mediation route: how to persist a variable between exchanges

Hi, 

 

I have a route where I want to get access_token once, store it in a static variable and re-use it between exchanges. I couldn't use context variables for this, as modifying context variable didn't work ( doesn't persist the modified data ). 

looked into camel properties component, but looks like that is more for storing endpoints. 

 

please suggest how to have a static variable that can be modified and persistent across exchanges for a route. A solution that involves spring is fine too. 

 

thanks,

Sowjanya.

Seven Stars

Re: Talend mediation route: how to persist a variable between exchanges

You can write a bean and use a static variable in it.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.