UOCL-244: development

This commit is contained in:
2023-08-28 14:39:25 +01:00
parent 4d6e83024a
commit cdc81b4517
2 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -325,7 +325,7 @@
<dependency> <dependency>
<groupId>com.unicenta</groupId> <groupId>com.unicenta</groupId>
<artifactId>unicenta-plugins</artifactId> <artifactId>unicenta-plugins</artifactId>
<version>1.1</version> <version>1.2-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.gluonhq</groupId> <groupId>com.gluonhq</groupId>
@@ -121,10 +121,16 @@ public class StartPOS {
} }
private static void applicationStarted(String host) { private static void applicationStarted(String host) {
new Thread(() -> { new Thread(() -> {
try {
Metrics metrics = new Metrics(); Metrics metrics = new Metrics();
metrics.setDevice(host); metrics.setDevice(host);
metrics.setUniCentaVersion(AppLocal.APP_VERSION); metrics.setUniCentaVersion(AppLocal.APP_VERSION);
new Application().postMetrics(metrics); Application application = new Application();
application.postMetrics(metrics);
application.startEventListener(host);
} catch (Exception e) {
log.error("Problem with starting the uniCenta plugin application:${}", e.getMessage());
}
}).start(); }).start();
} }
} }