public RmiHostedService( short rmiId, byte defaultChannel, boolean autoHost ) { this.rmiId = rmiId; this.defaultChannel = defaultChannel; this.autoHost = autoHost; Serializer.registerClasses(ClassInfo.class, MethodInfo.class); }
/** * Creates a new RPC host service that can be registered * with the Network server and will optionally 'host' * RPC services and each new network connection depending * on the specified 'autoHost' flag. */ public RpcHostedService( boolean autoHost ) { super(autoHost); // This works for me... has to be different in // the general case Serializer.registerClasses(RpcCallMessage.class, RpcResponseMessage.class); }
public RmiHostedService( short rmiId, byte defaultChannel, boolean autoHost ) { this.rmiId = rmiId; this.defaultChannel = defaultChannel; this.autoHost = autoHost; Serializer.registerClasses(ClassInfo.class, MethodInfo.class); }
/** * Creates a new RPC host service that can be registered * with the Network server and will optionally 'host' * RPC services and each new network connection depending * on the specified 'autoHost' flag. */ public RpcHostedService( boolean autoHost ) { super(autoHost); // This works for me... has to be different in // the general case Serializer.registerClasses(RpcCallMessage.class, RpcResponseMessage.class); }
Serializer.registerClass( java.lang.reflect.Field.class, new ClassFieldSerializer() ); Serializer.registerClasses(classes);