[[PageOutline]] = Genius2 ProfilesServer This is the home page of the genius2 profiles server. This server serves domain and profile files to interested parties, and can inform them of changes. == Installation == * Install your apache-tomcat 8 installation ​https://tomcat.apache.org/download-80.cgi. You can re-use an existing installation. * Download the parties server war file from [http://artifactory.ewi.tudelft.nl/artifactory/webapp/#/artifacts/browse/tree/General/libs-release-local/genius2/profilesserver the artifactory]. Go into the latest version of the partiesserver and download (right click) the war file. NOTICE: your browser must have cookies enabled to access the artifactory. * Copy the downloaded war file into the tomcat webapps directory * (Re)start tomcat Now your local profilesserver should be up and running. After installing and starting, go to [http://localhost:8080/profilesserver] to see if it works. To download a profile in your agent, check the examples in [https://tracinsy.ewi.tudelft.nl/trac/Genius2ProfilesServer/browser/src/test/java/genius2/examples]. Basically you just open a websocket and read the incoming profile like this {{{ WebSocketFactory factory = new WebSocketFactory().setConnectionTimeout(5000); WebSocket ws = factory.createSocket("ws://localhost:8080/profilesserver/websocket/get/jobs/jobs1"); ws.addListener(this); ... @Override public void onTextMessage(WebSocket websocket, String json) throws Exception { System.out.println("received profile: " + new ObjectMapper().readValue(json, Profile.class)); } }}} You can also download this source repository (you don't need this if you just want to use the profilesserver) {{{ svn checkout https://tracinsy.ewi.tudelft.nl/svn/Genius2ProfilesServer/ }}} Since this is a tomcat web application, you need Eclipse Enterprise edition if you want to use this from Eclipse. Also, to checkout from Eclipse, you need to prepare Eclipse for this. Check https://tracinsy.ewi.tudelft.nl/trac/Genius2/wiki/WikiStart == Profile structure ==