<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Reg: Calling two context files in one job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Reg-Calling-two-context-files-in-one-job/m-p/2290711#M63963</link>
    <description>Hi Camsellem,
&lt;BR /&gt;Thanks for the response. But there is no link as OnSubJob ok when you right click on tContextLoad component.
&lt;BR /&gt;Thanks
&lt;BR /&gt;Naju</description>
    <pubDate>Thu, 20 May 2010 21:30:20 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-05-20T21:30:20Z</dc:date>
    <item>
      <title>Reg: Calling two context files in one job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reg-Calling-two-context-files-in-one-job/m-p/2290709#M63961</link>
      <description>Hi, 
&lt;BR /&gt;I want to call two context files in one job. One of my context file consist of Database credentials and the other context file holds the name of a source file from which I should read the data for my job. 
&lt;BR /&gt;I am not able to call both the context file one job. 
&lt;BR /&gt;But as per my requirement values like database credentials and source file name is configurable. My source file name changes for each and every load. 
&lt;BR /&gt;How can I achieve this in Talend. Is there any viable solution for this issue? Please suggest me some method where I can do this. 
&lt;BR /&gt;I have also used tFileList. My tFileList points out to a folder where my context files are defined. Context values are defined as following 
&lt;BR /&gt;db_connections.txt 
&lt;BR /&gt;host;10.xxx.xxx.xx; 
&lt;BR /&gt;port;3306; 
&lt;BR /&gt;username;abc; 
&lt;BR /&gt;password;def; 
&lt;BR /&gt;database;XYZ; 
&lt;BR /&gt;source_filename.txt 
&lt;BR /&gt;FILENAME;/usr/local/filename-2010-dt.log; -----&amp;gt; which is a delimited file 
&lt;BR /&gt;I have to pass these two files in my next job 
&lt;BR /&gt;I have used 
&lt;BR /&gt;tFileList -Iterate-&amp;gt; tfileInput -main-&amp;gt; tContextLoad -On Component ok-&amp;gt;tFileInputdelimited-main-&amp;gt;tMysqlOutput 
&lt;BR /&gt;I am able to fetch the value correctly till tContextLoad. 
&lt;BR /&gt;I have also define my context for the values in my context tab as specified in context file. I can't use both these files together. It's throwing an error 
&lt;BR /&gt; 
&lt;BR /&gt;Please see the error message and also screenshots 
&lt;BR /&gt; connecting to socket on port 4200 
&lt;BR /&gt; connected 
&lt;BR /&gt;tContextLoad_1 set key "FILENAME" with value "/usr/local/filename-2010-dt.log" 
&lt;BR /&gt;199 milliseconds 
&lt;BR /&gt; disconnected 
&lt;BR /&gt;Exception in component tMysqlOutput_1 
&lt;BR /&gt;java.sql.SQLException: Must specify port after ':' in connection string 
&lt;BR /&gt; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1056) 
&lt;BR /&gt; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:957) 
&lt;BR /&gt; at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:927) 
&lt;BR /&gt; at com.mysql.jdbc.NonRegisteringDriver.parseHostPortPair(NonRegisteringDriver.java:164) 
&lt;BR /&gt; at com.mysql.jdbc.Connection.createNewIO(Connection.java:1905) 
&lt;BR /&gt; at com.mysql.jdbc.Connection.&amp;lt;init&amp;gt;(Connection.java:716) 
&lt;BR /&gt; at com.mysql.jdbc.JDBC4Connection.&amp;lt;init&amp;gt;(JDBC4Connection.java:46) 
&lt;BR /&gt; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
&lt;BR /&gt; at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) 
&lt;BR /&gt; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) 
&lt;BR /&gt; at java.lang.reflect.Constructor.newInstance(Constructor.java:513) 
&lt;BR /&gt; at com.mysql.jdbc.Util.handleNewInstance(Util.java:353) 
&lt;BR /&gt; at com.mysql.jdbc.Connection.getInstance(Connection.java:295) 
&lt;BR /&gt; at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) 
&lt;BR /&gt; at java.sql.DriverManager.getConnection(DriverManager.java:582) 
&lt;BR /&gt; at java.sql.DriverManager.getConnection(DriverManager.java:185) 
&lt;BR /&gt; at amr4_etl.job_tfilelist_0_1.job_tFileList.tFileInputDelimited_2Process(job_tFileList.java:3821) 
&lt;BR /&gt; at amr4_etl.job_tfilelist_0_1.job_tFileList.tFileList_1Process(job_tFileList.java:777) 
&lt;BR /&gt; at amr4_etl.job_tfilelist_0_1.job_tFileList.runJobInTOS(job_tFileList.java:6824) 
&lt;BR /&gt; at amr4_etl.job_tfilelist_0_1.job_tFileList.main(job_tFileList.java:6705) 
&lt;BR /&gt;Job job_tFileList ended at 12:20 20/05/2010. 
&lt;BR /&gt;Please let me know whether my approach as method is correct. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Naju</description>
      <pubDate>Sat, 16 Nov 2024 13:25:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reg-Calling-two-context-files-in-one-job/m-p/2290709#M63961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Calling two context files in one job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reg-Calling-two-context-files-in-one-job/m-p/2290710#M63962</link>
      <description>Hi Naju&lt;BR /&gt;Can you try by changing the onComponentOk link with a OnSubjobOK one ?</description>
      <pubDate>Thu, 20 May 2010 21:06:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reg-Calling-two-context-files-in-one-job/m-p/2290710#M63962</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-20T21:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Calling two context files in one job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reg-Calling-two-context-files-in-one-job/m-p/2290711#M63963</link>
      <description>Hi Camsellem,
&lt;BR /&gt;Thanks for the response. But there is no link as OnSubJob ok when you right click on tContextLoad component.
&lt;BR /&gt;Thanks
&lt;BR /&gt;Naju</description>
      <pubDate>Thu, 20 May 2010 21:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reg-Calling-two-context-files-in-one-job/m-p/2290711#M63963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-20T21:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reg: Calling two context files in one job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reg-Calling-two-context-files-in-one-job/m-p/2290712#M63964</link>
      <description>Yes this is normal the link should be after tFileList (start point of your subjob).</description>
      <pubDate>Fri, 21 May 2010 07:26:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reg-Calling-two-context-files-in-one-job/m-p/2290712#M63964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-05-21T07:26:32Z</dc:date>
    </item>
  </channel>
</rss>

