Search in sources :

Example 6 with ADistributedInheritingRMICounter

use of examples.mvc.rmi.duplex.ADistributedInheritingRMICounter in project GIPC by pdewan.

the class ASimpleGIPCRegistryAndCounterServer method init.

protected static void init() {
    gipcRegistry = GIPCLocateRegistry.createRegistry(SERVER_PORT);
    counter = new ADistributedInheritingRMICounter();
    gipcRegistry.rebind(COUNTER_NAME, counter);
    gipcRegistry.getInputPort().addConnectionListener(new ATracingConnectionListener(gipcRegistry.getInputPort()));
}
Also used : ADistributedInheritingRMICounter(examples.mvc.rmi.duplex.ADistributedInheritingRMICounter) ATracingConnectionListener(port.ATracingConnectionListener)

Aggregations

ADistributedInheritingRMICounter (examples.mvc.rmi.duplex.ADistributedInheritingRMICounter)6 DistributedRMICounter (examples.mvc.rmi.duplex.DistributedRMICounter)4 LocateRegistry (java.rmi.registry.LocateRegistry)3 Registry (java.rmi.registry.Registry)3 GIPCRegistry (inputport.rpc.GIPCRegistry)1 Remote (java.rmi.Remote)1 ATracingConnectionListener (port.ATracingConnectionListener)1