<?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: Disable default System.out.println statements in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Disable-default-System-out-println-statements/m-p/2298205#M70697</link>
    <description>&lt;P&gt;You can't really disable the System.out code as such, but you can disable the mechanism that prints them. Add a tJava to the beginning of your job (the first component) and put this code in it.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;System.setOut(new  java.io.PrintStream(new  java.io.OutputStream() {
                public void write(int b) {
                    //DO NOTHING
                }
            }));&lt;/PRE&gt;
&lt;P&gt;You will no longer get those lines printed.......but you won't get anything else from the System.out either.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Apr 2018 15:17:22 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-04-26T15:17:22Z</dc:date>
    <item>
      <title>Disable default System.out.println statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Disable-default-System-out-println-statements/m-p/2298204#M70696</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am checking if there is a way to disable System.out.println logs that generated&amp;nbsp; by default in talend. In my case, i am using the tmomInput and for errorhandling am obliged to use a tmomoutput to capture and send the message to another queue . Everything works as expected ,except that I get this "Disconnecting Queue"statement eventhough the message doesn't pass through the reject link. When there are 50000 or even 100000 messages, i get the same number of Disconnecting Queue statements. Is there a way to overcome this situation?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Code Snippet (I see this in the generated java code, but i am not able to comment or disable this)&lt;/P&gt; 
&lt;P&gt;currentComponent = "tMomOutput_1";&lt;BR /&gt;System.out.println("Disconnecting queue");&lt;BR /&gt;remoteQ_tMomOutput_1.close();&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;[statistics] connecting to socket on port 3626&lt;BR /&gt;[statistics] connected&lt;BR /&gt;Ready to receive message&lt;BR /&gt;Waiting...&lt;BR /&gt;Disconnecting queue&lt;BR /&gt;Disconnecting queue&lt;BR /&gt;Disconnecting queue&lt;BR /&gt;Disconnecting queue&lt;BR /&gt;Disconnecting queue&lt;BR /&gt;Disconnecting queue&lt;BR /&gt;Disconnecting queue&lt;BR /&gt;Disconnecting queue&lt;BR /&gt;Disconnecting queue&lt;BR /&gt;Disconnecting queue&lt;BR /&gt;Disconnecting queue&lt;BR /&gt;Disconnecting queue&lt;BR /&gt;Disconnecting queue&lt;BR /&gt;Disconnecting queue&lt;BR /&gt;Disconnecting queue&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:20:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Disable-default-System-out-println-statements/m-p/2298204#M70696</guid>
      <dc:creator>sensiva</dc:creator>
      <dc:date>2024-11-16T08:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Disable default System.out.println statements</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Disable-default-System-out-println-statements/m-p/2298205#M70697</link>
      <description>&lt;P&gt;You can't really disable the System.out code as such, but you can disable the mechanism that prints them. Add a tJava to the beginning of your job (the first component) and put this code in it.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;System.setOut(new  java.io.PrintStream(new  java.io.OutputStream() {
                public void write(int b) {
                    //DO NOTHING
                }
            }));&lt;/PRE&gt;
&lt;P&gt;You will no longer get those lines printed.......but you won't get anything else from the System.out either.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 15:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Disable-default-System-out-println-statements/m-p/2298205#M70697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-26T15:17:22Z</dc:date>
    </item>
  </channel>
</rss>

