One Star

Pass JVM arguments in "Use specific JVM arguments" as variables in Adv

This query is studio specific only, as the implementation is simple in SH file.
What I am trying to achieve is, read env variables and pass it as JVM argument in ADVANCED settings.
like: -DLOG_DIR=%LOG_DIR%  -> is there any way I can do this in Studio?
Appreciate any input on this.
4 REPLIES
Moderator

Re: Pass JVM arguments in "Use specific JVM arguments" as variables in Adv

Hi,
  In Talend Studio, you can click the Window menu, then select Preferences, under Preferences, expand the Talend node, and select Run / Debug, which will apply for studio.
Is it what you are looking for?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Pass JVM arguments in "Use specific JVM arguments" as variables in Adv

Hi sabrina, what I want is, instead of hardcoading JVM argument values, pass the value as parameter readng it from env properties.
One Star

Re: Pass JVM arguments in "Use specific JVM arguments" as variables in Adv

Any updates on this, is it possible?  I want to use a context variable in the JVM so I can pass it to log4j, for example: -DJOB_ID=context.j_job_id
Moderator

Re: Pass JVM arguments in "Use specific JVM arguments" as variables in Adv

Hi,
Could you please take a look at this document about:TalendHelpCenterSmiley Frustratedetting JVM parameters for specific tasks to see if it is what you are looking for?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.