Strabon

changeset 1524:1f52e999af3e

modified the jdbc connection URL so that it reports the application name, which is "Strabon"
author Babis Nikolaou <charnik@di.uoa.gr>
date Tue Sep 22 20:13:47 2015 +0300 (2015-09-22)
parents d8dcfd4224e6
children c18b84e14117
files runtime/src/main/java/eu/earthobservatory/runtime/postgis/Strabon.java
line diff
     1.1 --- a/runtime/src/main/java/eu/earthobservatory/runtime/postgis/Strabon.java	Tue Sep 22 20:05:37 2015 +0300
     1.2 +++ b/runtime/src/main/java/eu/earthobservatory/runtime/postgis/Strabon.java	Tue Sep 22 20:13:47 2015 +0300
     1.3 @@ -55,7 +55,7 @@
     1.4  			logger.info("[Strabon] Cleaning...");
     1.5  			Class.forName("org.postgresql.Driver");
     1.6  			url = "jdbc:postgresql://" + serverName + ":" + port + "/"
     1.7 -			+ databaseName + "?user=" + user + "&password=" + password;
     1.8 +			+ databaseName + "?user=" + user + "&password=" + password + "&application_name=Strabon";
     1.9  			Connection conn = DriverManager.getConnection(url);
    1.10  			java.sql.Statement st = conn.createStatement();
    1.11  			st.execute("DROP TABLE IF EXISTS locked;");
    1.12 @@ -95,7 +95,7 @@
    1.13  		try {
    1.14  			logger.info("[Strabon] Checking for locks...");
    1.15  			Class.forName("org.postgresql.Driver");
    1.16 -			url = "jdbc:postgresql://" + serverName + ":" + port + "/" + databaseName + "?user=" + user + "&password=" + password;
    1.17 +			url = "jdbc:postgresql://" + serverName + ":" + port + "/" + databaseName + "?user=" + user + "&password=" + password + "&application_name=Strabon";
    1.18  			
    1.19  			conn = DriverManager.getConnection(url);
    1.20  			st = conn.createStatement();