Compare commits

..

3 Commits

Author SHA1 Message Date
Peter Hormanns
432904eef1 prepare for salt deployment 2023-08-04 17:52:49 +02:00
Peter Hormanns
6f84ce51dd fix transaction handling 2023-08-02 20:54:19 +02:00
Peter Hormanns
c1d8d9aff0 increase version to v4.0.11 2023-08-02 20:39:29 +02:00
9 changed files with 17 additions and 67 deletions

View File

@ -5,7 +5,7 @@
<groupId>de.hsadmin</groupId> <groupId>de.hsadmin</groupId>
<artifactId>hsar</artifactId> <artifactId>hsar</artifactId>
<packaging>war</packaging> <packaging>war</packaging>
<version>4.0.10</version> <version>4.0.12</version>
<name>HSAdmin Stable Backend Webapp</name> <name>HSAdmin Stable Backend Webapp</name>
<url>http://maven.apache.org</url> <url>http://maven.apache.org</url>
<properties> <properties>
@ -36,12 +36,12 @@
<dependency> <dependency>
<groupId>de.hsadmin.core</groupId> <groupId>de.hsadmin.core</groupId>
<artifactId>hsadmin-util</artifactId> <artifactId>hsadmin-util</artifactId>
<version>4.0.10</version> <version>4.0.12</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>de.hsadmin.core</groupId> <groupId>de.hsadmin.core</groupId>
<artifactId>hsadmin-qserv</artifactId> <artifactId>hsadmin-qserv</artifactId>
<version>4.0.10</version> <version>4.0.12</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>commons-httpclient</groupId> <groupId>commons-httpclient</groupId>

View File

@ -3,8 +3,8 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>de.hsadmin</groupId> <groupId>de.hsadmin</groupId>
<artifactId>hsadmin-deploy</artifactId> <artifactId>hsadmin-qserv</artifactId>
<version>4.0.10</version> <version>4.0.12</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>HSAdmin-QServ</name> <name>HSAdmin-QServ</name>
@ -20,7 +20,7 @@
<dependency> <dependency>
<groupId>de.hsadmin.core</groupId> <groupId>de.hsadmin.core</groupId>
<artifactId>hsadmin-qserv</artifactId> <artifactId>hsadmin-qserv</artifactId>
<version>4.0.10</version> <version>4.0.12</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.activemq</groupId> <groupId>org.apache.activemq</groupId>
@ -71,8 +71,7 @@
<verbose>true</verbose> <verbose>true</verbose>
<dataSet> <dataSet>
<data> <data>
<src> <src>${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar</src>
${project.build.directory}/${project.build.finalName}-jar-with-dependencies.jar</src>
<dst>hsadmin-qserv-full.jar</dst> <dst>hsadmin-qserv-full.jar</dst>
<type>file</type> <type>file</type>
<mapper> <mapper>
@ -80,15 +79,6 @@
<prefix>/usr/local/lib/hostsharing/hsadmin</prefix> <prefix>/usr/local/lib/hostsharing/hsadmin</prefix>
</mapper> </mapper>
</data> </data>
<data>
<src>src/deb/etc/logging.properties</src>
<type>file</type>
<mapper>
<type>perm</type>
<prefix>/etc/hsadmin/qserv</prefix>
<filemode>640</filemode>
</mapper>
</data>
<data> <data>
<src>src/deb/systemd/hsadmin-qserv.service</src> <src>src/deb/systemd/hsadmin-qserv.service</src>
<type>file</type> <type>file</type>

View File

@ -1,3 +0,0 @@
java.naming.factory.initial=org.apache.activemq.jndi.ActiveMQInitialContextFactory
java.naming.provider.url=ssl://hsh02.hostsharing.net:61617
connectionFactoryNames=QueueCF

View File

@ -1,33 +0,0 @@
# Der ConsoleHandler gibt die Nachrichten auf std.err aus
.handlers=java.util.logging.FileHandler,java.util.logging.ConsoleHandler
# Festlegen des Standard Loglevels
.level=INFO
############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################
# Die Nachrichten in eine Datei im Log-Verzeichnis schreiben
java.util.logging.FileHandler.pattern=/var/log/hostsharing/hsadmin/hsar-qserv.log
java.util.logging.FileHandler.limit=500000
java.util.logging.FileHandler.count=5
java.util.logging.FileHandler.level=ALL
java.util.logging.FileHandler.formatter=java.util.logging.SimpleFormatter
# Zusätzlich zu den normalen Logleveln kann für jeden Handler noch ein eigener Filter
# vergeben werden. Das ist nützlich wenn beispielsweise alle Nachrichten auf der Konsole ausgeben werden sollen
# aber nur ab INFO in das Logfile geschrieben werden soll.
java.util.logging.ConsoleHandler.level=INFO
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
############################################################
# Extraeinstellungen für einzelne Logger
############################################################
# Für einzelne Logger kann ein eigenes Loglevel festgelegt werden.
de.hsadmin.core.qserv.level = FINEST

View File

@ -1,8 +0,0 @@
hsadmin.jms.factory=QueueCF
hsadmin.jms.status-queue=hsadminStatus
hsadmin.jms.system-queue=hsadminSystem-h98
hsadmin.jms.username=user-h98
hsadmin.jms.password=acmq
hsadmin.log.config=/etc/hsadmin/qserv/logging.properties
hsadmin.log.email=service@hostsharing.net
hsadmin.log.from=qserv@h98.hostsharing.net

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>de.hsadmin.core</groupId> <groupId>de.hsadmin.core</groupId>
<artifactId>hsadmin-qserv</artifactId> <artifactId>hsadmin-qserv</artifactId>
<version>4.0.10</version> <version>4.0.12</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version> <java.version>11</java.version>
@ -13,7 +13,7 @@
<dependency> <dependency>
<groupId>de.hsadmin.core</groupId> <groupId>de.hsadmin.core</groupId>
<artifactId>hsadmin-util</artifactId> <artifactId>hsadmin-util</artifactId>
<version>4.0.10</version> <version>4.0.12</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>commons-lang</groupId> <groupId>commons-lang</groupId>

View File

@ -108,8 +108,12 @@ public class Transaction {
} }
public void commitTransaction() { public void commitTransaction() {
sendAll(); try {
entityManager.getTransaction().commit(); entityManager.getTransaction().commit();
} catch (Exception e) {
throw new TechnicalException(e);
}
sendAll();
transactionActive = false; transactionActive = false;
} }
@ -119,7 +123,7 @@ public class Transaction {
try { try {
entityManager.getTransaction().rollback(); entityManager.getTransaction().rollback();
} catch (IllegalStateException e) { } catch (IllegalStateException e) {
// can't rollback throw new TechnicalException(e);
} }
} }

View File

@ -26,7 +26,7 @@ import javax.naming.InitialContext;
public class QueueServer extends QueueCommons implements MessageListener, ExceptionListener { public class QueueServer extends QueueCommons implements MessageListener, ExceptionListener {
private static final String VERSION_NO = "4.0.9"; private static final String VERSION_NO = "4.0.11";
private Logger logger; private Logger logger;
private QueueConnection conn; private QueueConnection conn;

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>de.hsadmin.core</groupId> <groupId>de.hsadmin.core</groupId>
<artifactId>hsadmin-util</artifactId> <artifactId>hsadmin-util</artifactId>
<version>4.0.10</version> <version>4.0.12</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version> <java.version>11</java.version>