Using a different context

If you have decided to use multiple contexts as a means of defining your runtime properties, then they can be selected at runtime using the following method.

Getting ready

Export the job jo_cook_ch11_0020_differentContext, as shown in the previous recipe.

How to do it…

  1. Open a command window, navigate to the job directory, and execute the shell launcher for your environment (see previous exercise).
  2. You will see that the output contains the text Value = ABC.
  3. Open the shell launcher, and scroll to the very end of the command line.
  4. Change the context from --context=development to –context=test as shown in the next screenshot:
    How to do it…
  5. Save ...

Get Talend Open Studio Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.