blob: 7a05894c87979dc64a9780532cc0fe2c27712c56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
package com.orbekk.same.directory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.orbekk.same.discovery.DirectoryService;
import com.orbekk.same.http.JettyServerBuilder;
import com.orbekk.same.http.ServerContainer;
public class DirectoryApp {
public static final int DISCOVERY_PORT = 15072;
public static void main(String[] args) {
Logger logger = LoggerFactory.getLogger(DirectoryApp.class);
ServerContainer server = new JettyServerBuilder(DISCOVERY_PORT)
.withService(new DirectoryServiceImpl(), DirectoryService.class)
.build();
try {
server.start();
} catch (Exception e) {
logger.error("Unable to start server.", e);
}
}
}
|