MetaServletCaller: How to set context environment name and log4j level parameters with associatePreGeneratedJob command

Talend Version 6.2.1 and above


MetaServletCaller associatePreGeneratedJob command does not set context and log4j level.
Additional Versions  
Key words MetaServletCaller; associatePreGeneratedJob; contextName logLevel
Article Type  
Problem Description How to specify context environment name and log4j level when creating a task with the MetaServletCaller associatePreGeneratedJob command.
Problem root cause  
Solution or Workaround

Add contextName and logLevel elements to the JSON string of the MetaServletCaller associatePreGeneratedJob command:




As a workaround for versions prior to 6.2.1, after you create the task, run the following SQL query on the TAC database to update both context and log4j level:

UPDATE executiontask SET context='Dev', log4jlevel='Debug' where label='yourTaskName'
JIRA ticket number  
Version history
Revision #:
5 of 5
Last update:
‎06-11-2018 01:50 PM
Updated by: