diff --git a/hsarback/pom.xml b/hsarback/pom.xml
index 1d17e87..d13d420 100644
--- a/hsarback/pom.xml
+++ b/hsarback/pom.xml
@@ -5,7 +5,7 @@
de.hsadmin
hsar
war
- 4.0.16
+ 4.0.17
HSAdmin Stable Backend Webapp
http://maven.apache.org
@@ -19,12 +19,12 @@
de.hsadmin.core
hsadmin-util
- 4.0.16
+ 4.0.17
de.hsadmin.core
hsadmin-qserv
- 4.0.16
+ 4.0.17
commons-httpclient
diff --git a/hsarback/src/main/java/de/hsadmin/remote/RoleRemote.java b/hsarback/src/main/java/de/hsadmin/remote/RoleRemote.java
index 41349d4..2f82b6c 100644
--- a/hsarback/src/main/java/de/hsadmin/remote/RoleRemote.java
+++ b/hsarback/src/main/java/de/hsadmin/remote/RoleRemote.java
@@ -23,8 +23,9 @@ public class RoleRemote implements IRemote {
Transaction transaction = new Transaction(user);
if (transaction.login(user, ticket)) {
String role = "USER";
- String accoutPrefixCustomer = Config.getInstance().getProperty("accountprefix.customer");
- String accoutPrefixHostmaster = Config.getInstance().getProperty("accountprefix.hostmaster");
+ Config config = Config.getInstance();
+ String accoutPrefixCustomer = config.getProperty("accountprefix.customer");
+ String accoutPrefixHostmaster = config.getProperty("accountprefix.hostmaster");
Pac pac = transaction.getLoginUser().getPac();
String pacName = pac.getName();
if (accoutPrefixCustomer.equals(pacName)) {
diff --git a/qserv-deploy/pom.xml b/qserv-deploy/pom.xml
index e75abde..275e776 100644
--- a/qserv-deploy/pom.xml
+++ b/qserv-deploy/pom.xml
@@ -4,7 +4,7 @@
4.0.0
de.hsadmin
hsadmin-qserv
- 4.0.16
+ 4.0.17
jar
HSAdmin-QServ
@@ -17,10 +17,15 @@
+
+ de.hsadmin.core
+ hsadmin-util
+ 4.0.17
+
de.hsadmin.core
hsadmin-qserv
- 4.0.16
+ 4.0.17
org.apache.activemq
@@ -79,6 +84,15 @@
/usr/local/lib/hostsharing/hsadmin
+
+ src/deb/init/init_hive_mysqldb.sh
+ file
+
+ perm
+ /usr/local/lib/hostsharing/hsadmin/tools/
+ 754
+
+
src/deb/systemd/hsadmin-qserv.service
file
diff --git a/qserv-deploy/src/deb/init/init_hive_mysqldb.sh b/qserv-deploy/src/deb/init/init_hive_mysqldb.sh
new file mode 100644
index 0000000..2375bc0
--- /dev/null
+++ b/qserv-deploy/src/deb/init/init_hive_mysqldb.sh
@@ -0,0 +1,50 @@
+#!/bin/bash
+
+mysql --defaults-file=/root/.my.cnf mysql <4.0.0
de.hsadmin.core
hsadmin-qserv
- 4.0.16
+ 4.0.17
UTF-8
11
@@ -13,7 +13,7 @@
de.hsadmin.core
hsadmin-util
- 4.0.16
+ 4.0.17
commons-lang
diff --git a/qserv/src/main/java/de/hsadmin/core/qserv/QueueServer.java b/qserv/src/main/java/de/hsadmin/core/qserv/QueueServer.java
index 3ea0f60..add34b1 100644
--- a/qserv/src/main/java/de/hsadmin/core/qserv/QueueServer.java
+++ b/qserv/src/main/java/de/hsadmin/core/qserv/QueueServer.java
@@ -37,8 +37,7 @@ public class QueueServer implements MessageListener, ExceptionListener {
/**
- * Runs the QueueServer, using the arguments as ConnectionFactory
- * and Topic names.
+ * Runs the QueueServer.
*/
public static void main(String[] args) throws Exception {
final Config config = Config.getInstance();
diff --git a/util/pom.xml b/util/pom.xml
index 5539f63..f10de1a 100644
--- a/util/pom.xml
+++ b/util/pom.xml
@@ -4,7 +4,7 @@
4.0.0
de.hsadmin.core
hsadmin-util
- 4.0.16
+ 4.0.17
UTF-8
11
diff --git a/util/src/main/java/de/hsadmin/core/util/Config.java b/util/src/main/java/de/hsadmin/core/util/Config.java
index efe4328..8e78bc9 100644
--- a/util/src/main/java/de/hsadmin/core/util/Config.java
+++ b/util/src/main/java/de/hsadmin/core/util/Config.java
@@ -18,16 +18,11 @@ public class Config {
private Config() {
props = new Properties();
+ initPropertiesFromFile();
+ }
+
+ private void initPropertiesFromFile() {
final String baseName = "hsadmin";
- initPropertiesFromFile(baseName);
- }
-
- private Config(String baseName) {
- props = new Properties();
- initPropertiesFromFile(baseName);
- }
-
- private void initPropertiesFromFile(final String baseName) {
File file = new File(userDir + "/" + baseName + ".properties");
if (!file.canRead()) {
file = new File(userDir + "/conf/" + baseName + ".properties");
@@ -50,7 +45,8 @@ public class Config {
e.printStackTrace();
}
} else {
- LOG.severe("reading properties failed: No properties file found");
+ final String errormsg = "reading properties failed: No properties file found";
+ LOG.severe(errormsg);
}
}
@@ -61,13 +57,6 @@ public class Config {
return instance;
}
- public static Config getInstance(String baseName) {
- if (instance == null) {
- instance = new Config(baseName);
- }
- return instance;
- }
-
public String getProperty(String propertyName) {
String property = props.getProperty(propertyName);
return property;