Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] How to pass tJava output as header data to tRest client component

 am creating a Job to set cookie value for tRestClient component.
To acheive this task i wrote a Java code in tJava component and i am able to extract cookie data with this Java code. Now i want to pass this data to tRestClient component.
Please suggest a way to resolve pass the cookie data.

More details: Below is the expected talend job structure
tJava -> tRestClient
Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi 
You can store the cookie value to a context variable or global variable for used on tRestClient. eg:
tJava ->oncomponentok--> tRestClient
on tJava:
...
String cookie=your java code;
globalMap.put("cookie",cookie);
on tRestClient, you can get the cookie value with this expression:
(String)globalMap.get("cookie")
Regards
Shong

View solution in original post

1 Reply
Anonymous
Not applicable
Author

Hi 
You can store the cookie value to a context variable or global variable for used on tRestClient. eg:
tJava ->oncomponentok--> tRestClient
on tJava:
...
String cookie=your java code;
globalMap.put("cookie",cookie);
on tRestClient, you can get the cookie value with this expression:
(String)globalMap.get("cookie")
Regards
Shong