title: How to configure adding a comment line before a query in JNDI
body: <p>I have a got a very interesting requirement to add a comment string (like <code>/*Query Hint VPOD100*/</code>) before each query getting executed through JNDI. Is there any way we can modify query and comment (or query hint) before each query? </p>
  
  <p>Please find the JNDI configuration which I am using in jboss-as-7.2.0.Final. </p>
  
  <pre><code>&lt;datasource jndi-name="java:/avalon-ds" pool-name="avalon-ds" enabled="true" use-ccm="false"&gt;
      &lt;connection-url&gt;jdbc:teradata://env.corp.xyz.com/charset=UTF8,DBC_PORT=1025&lt;/connection-url&gt;
      &lt;driver-class&gt;com.teradata.jdbc.TeraDriver&lt;/driver-class&gt;
      &lt;driver&gt;TeradataDriver&lt;/driver&gt;
      &lt;new-connection-sql&gt;select 1&lt;/new-connection-sql&gt;
      &lt;pool&gt;
          &lt;min-pool-size&gt;2&lt;/min-pool-size&gt;
          &lt;max-pool-size&gt;4&lt;/max-pool-size&gt;
          &lt;prefill&gt;true&lt;/prefill&gt;
          &lt;use-strict-min&gt;true&lt;/use-strict-min&gt;
          &lt;flush-strategy&gt;IdleConnections&lt;/flush-strategy&gt;
      &lt;/pool&gt;
      &lt;security&gt;
          &lt;user-name&gt;user&lt;/user-name&gt;
          &lt;password&gt;password&lt;/password&gt;
      &lt;/security&gt;
      &lt;validation&gt;
          &lt;check-valid-connection-sql&gt;select 1&lt;/check-valid-connection-sql&gt;
          &lt;validate-on-match&gt;true&lt;/validate-on-match&gt;
          &lt;background-validation&gt;true&lt;/background-validation&gt;
          &lt;background-validation-millis&gt;3000&lt;/background-validation-millis&gt;
      &lt;/validation&gt;
      &lt;timeout&gt;
          &lt;blocking-timeout-millis&gt;60000&lt;/blocking-timeout-millis&gt;
          &lt;idle-timeout-minutes&gt;5&lt;/idle-timeout-minutes&gt;
      &lt;/timeout&gt;
      &lt;statement&gt;
          &lt;share-prepared-statements&gt;false&lt;/share-prepared-statements&gt;
      &lt;/statement&gt;
  &lt;/datasource&gt;
  </code></pre>
  
  <p>Please let me know if there are any questions. Thank you going through my question.</p>