Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello, what you're going to want to do is configure the metadata to connect to your test environment, from there you press the "Export as context" button to convert the connection parameters into context variables for the metadata values. See the attached screen shots for what this will look like.
Hi kleinmat - after converting your DB connections to contexts or a context group, your new contexts are stored in the Talend repository. Next, you use the contexts on your DB input and output drums... To do this, you'd type those values in your DB properties (see screenshot - property set to built-in).
For your port in particular, make sure the data type of the context.port variable is integer...
Hi kleinmat. No it will work. But if you drag and drop your connection to a job I guess you will not get automatically the context var group also added to you job, this must be done manually - but that is not a big deal.
i have same situation using context variable in my database connection but it doesn't work.
error: Connection failure. You must change the Database Settings.
java.lang.RuntimeException: com.microsoft.sqlserver.jdbc.SQLServerException: Login failed for user 'context.JV_UAT_Server.userName'. ClientConnectionId:67d9089e-7a71-49cd-81e3-1390844e4a89
at org.talend.core.model.metadata.builder.database.JDBCDriverLoader.getConnection(JDBCDriverLoader.java:204)
First figure show a successful test connection without using context variables.
2nd show the context created.
Lastly the failed connection test using context variables.
Would you know what I may did wrong?