use of inputport.rpc.duplex.DuplexRPCServerInputPort in project GIPC by pdewan.
the class ASessionServerFactory method createSessionServer.
public static DuplexRPCServerInputPort createSessionServer(String aServerId, String aServerName, LocalSessionsServer aSessionsServer, List<Class> aSessionsServerInterfaces, String aRegisteredServerName) {
DuplexRPCServerInputPort serverInputPort = DuplexRPCInputPortSelector.createDuplexRPCServerInputPort(aServerId, aServerName);
// SessionsServer sessionServer = new ASessionsServer(serverInputPort);
aSessionsServer.setDuplexRPCServerInputPort(serverInputPort);
// for (Class aSessionsServerInterface:aSessionsServerInterfaces)
// serverInputPort.register(aSessionsServerInterface, aSessionsServer);
serverInputPort.register(aSessionsServer);
// serverInputPort.register(LatecomerSessionsServer.class, sessionsServer);
// serverInputPort.register(aSessionsServerName, sessionsServer);
serverInputPort.register(aRegisteredServerName, aSessionsServer);
// serverInputPort.connect();
return serverInputPort;
}
Aggregations