ObjectConnection serverConnection = workerProcessContext.getServerConnection();
serverConnection.useParameterSerializer(new TestEventSerializer());
this.resultProcessor = serverConnection.addOutgoing(TestResultProcessor.class);
serverConnection.addIncoming(RemoteTestClassProcessor.class, this);
serverConnection.connect();
}
public void startProcessing() {
Thread.currentThread().setName("Test worker");
processor.startProcessing(resultProcessor);