UOCL-244: development
This commit is contained in:
@@ -325,7 +325,7 @@
|
||||
<dependency>
|
||||
<groupId>com.unicenta</groupId>
|
||||
<artifactId>unicenta-plugins</artifactId>
|
||||
<version>1.1</version>
|
||||
<version>1.2-SNAPSHOT</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.gluonhq</groupId>
|
||||
|
||||
@@ -121,10 +121,16 @@ public class StartPOS {
|
||||
}
|
||||
private static void applicationStarted(String host) {
|
||||
new Thread(() -> {
|
||||
Metrics metrics = new Metrics();
|
||||
metrics.setDevice(host);
|
||||
metrics.setUniCentaVersion(AppLocal.APP_VERSION);
|
||||
new Application().postMetrics(metrics);
|
||||
try {
|
||||
Metrics metrics = new Metrics();
|
||||
metrics.setDevice(host);
|
||||
metrics.setUniCentaVersion(AppLocal.APP_VERSION);
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user