title: How to set application_name for postgres connections?
body: <p>I'm using tomcat connection pool <code>org.apache.tomcat.jdbc.pool.DataSource</code>. The connections appear in my database <code>pg_stat_activity</code> with empty <code>application_name</code>.</p>
  
  <p>How could I set that application name in my java app, so I know where each connection comes from (as there will be multiple applications accessing the same db)?</p>