Re: Set application name from jdbc url

From: Sehrope Sarkuni <sehrope(at)jackdb(dot)com>
To: Stéphan BEUZE <stephan(dot)beuze(at)douane(dot)finances(dot)gouv(dot)fr>
Cc: List <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Set application name from jdbc url
Date: 2013-10-17 13:44:50
Message-ID: CAH7T-ar-mdYZ0rEh6o3WkqHk0MXRwfvCqM2vQ1AdvxoP69xCvA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

> What is the correct parameter name ?

Try "ApplicationName" [1]. Also, you can set it on the Connection
object after creation via the JDBC standard setClientInfo(...)
method[2].

[1]: https://github.com/pgjdbc/pgjdbc/blob/master/org/postgresql/core/v3/ConnectionFactoryImpl.java#L639
[2]: http://docs.oracle.com/javase/7/docs/api/java/sql/Connection.html#setClientInfo%28java.lang.String,%20java.lang.String%29

-S

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Stéphan BEUZE 2013-10-17 14:11:17 Re: [***] Re: Set application name from jdbc url
Previous Message Stéphan BEUZE 2013-10-17 13:36:44 Set application name from jdbc url