I want my application be registered with particular name in DB.
I have configured CAS application. CAS is based on Spring framework. As connection manager it uses c3p0. As RDBMS I use PostgreSQL.
In jdbcUrl I set the following:
jdbc:postgresql://localhost:5432/dbname?ApplicationName=CAS_TEST
in spring xml config my dataSource looks like:
<bean id="dataSource"
class="com.mchange.v2.c3p0.ComboPooledDataSource"
p:driverClass="org.postgresql.Driver"
p:jdbcUrl="${my.db.url}"
p:user="${my.db.user}"
p:password="${my.db.password}" />
The same approach with jdbcUrl and application name I use in Grails applications and everything is fine, but Grails uses another connection manager and I suppose c3p0 cuts url or something.
Does anyone have similar experience or know how to deal with application name in this case.
Thanks in advance.