Search in sources :

Example 1 with PrintingReplyingObjectReceiver

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);
}
Also used : PrintingReplyingObjectReceiver(port.old.PrintingReplyingObjectReceiver) AnAdder(sessionport.rpc.duplex.relayed.example.AnAdder) Adder(sessionport.rpc.duplex.relayed.example.Adder) AnAdder(sessionport.rpc.duplex.relayed.example.AnAdder) GroupRPCServerInputPort(inputport.rpc.group.GroupRPCServerInputPort)

Aggregations

GroupRPCServerInputPort (inputport.rpc.group.GroupRPCServerInputPort)1 PrintingReplyingObjectReceiver (port.old.PrintingReplyingObjectReceiver)1 Adder (sessionport.rpc.duplex.relayed.example.Adder)1 AnAdder (sessionport.rpc.duplex.relayed.example.AnAdder)1