use of port.old.PrintingReplyingObjectReceiver in project GIPC by pdewan.
the class AGroupRPCServerInputPortLauncher method main.
public static void main(String[] args) {
Tracer.showInfo(true);
GroupRPCServerInputPort serverInputPort = GroupRPCInputPortSelector.createGroupRPCServerInputPort("9090", "test server");
serverInputPort.connect();
PrintingReplyingObjectReceiver messageReceiver = new PrintingReplyingObjectReceiver(serverInputPort);
serverInputPort.addConnectionListener(messageReceiver);
Adder adder = new AnAdder();
serverInputPort.register(Adder.class, adder);
AGroupAdder groupAdder = new AGroupAdder(serverInputPort);
serverInputPort.register(GroupAdder.class, groupAdder);
serverInputPort.addSendListener(messageReceiver);
}
Aggregations