remove sleeps in QueueServer, rel. -> 4.0.9

This commit is contained in:
Peter Hormanns 2023-06-23 19:30:23 +02:00
parent cb7820de5e
commit 977c9225b7
5 changed files with 10 additions and 13 deletions

View File

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

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.hsadmin</groupId>
<artifactId>hsadmin-qserv</artifactId>
<version>4.0.8</version>
<version>4.0.9</version>
<packaging>jar</packaging>
<name>HSAdmin-QServ</name>
@ -20,7 +20,7 @@
<dependency>
<groupId>de.hsadmin.core</groupId>
<artifactId>hsadmin-qserv</artifactId>
<version>4.0.7</version>
<version>4.0.9</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>

View File

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

View File

@ -26,7 +26,7 @@ import javax.naming.InitialContext;
public class QueueServer extends QueueCommons implements MessageListener, ExceptionListener {
private static final String VERSION_NO = "1.1.1";
private static final String VERSION_NO = "4.0.9";
private Logger logger;
private QueueConnection conn;
@ -184,12 +184,9 @@ public class QueueServer extends QueueCommons implements MessageListener, Except
public void onException(JMSException e) {
logger.log(Level.WARNING, e.getMessage(), e);
close();
try {
Thread.sleep(10 * 1000L);
} catch (InterruptedException e1) { }
while (!connect()) {
try {
Thread.sleep(120 * 1000L);
Thread.sleep(10000);
} catch (InterruptedException e1) { }
}
}

View File

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