Skip to content
Snippets Groups Projects
Commit 28ab7628 authored by Locatelli's avatar Locatelli
Browse files

Use server proxy

parent d3e22de9
No related branches found
No related tags found
No related merge requests found
4.1.15 03/02/2023
------
* Use server proxy
4.1.13 03/02/2023
------
* Use proxy 10000 for cameo server
......
......@@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>fr.ill.ics</groupId>
<artifactId>nomadcommandsystem</artifactId>
<version>4.1.14-SNAPSHOT</version>
<version>4.1.16-SNAPSHOT</version>
<name>NomadCommandSystem</name>
<description>Java bridge for the communication with the Nomad server</description>
<scm>
......
......@@ -84,7 +84,7 @@ public class PlotyInstance {
String serverEndpoint = ConfigManager.getInstance().getServerEndpoint();
// Connect to the server.
server = Server.create(serverEndpoint);
server = Server.create(serverEndpoint, true);
server.init();
App ploty = null;
......
......@@ -32,13 +32,14 @@ public class ServerInstance {
// Get the server endpoint.
if (ConfigManager.getInstance().isMainClient()) {
nomadServerEndpoint = ConfigManager.getInstance().getNomadServerEndpoint();
server = Server.create(nomadServerEndpoint);
} else {
// nomad endpoint is build from selected instrument
nomadServerEndpoint = "tcp://" + SessionManager.getInstance(CommandZoneWrapper.SERVER_ID).getInstrumentName() + ":10000";
server = Server.create(nomadServerEndpoint, true);
}
// Connect to the server.
server = Server.create(nomadServerEndpoint);
server.init();
System.out.println("in serverinstance after Server.create(" + nomadServerEndpoint + ")");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment