Re: [protobuf] Generic Message Dispatch and Message Handler

2010-10-27 Thread Evan Jones
On Oct 26, 2010, at 15:45 , maninder batth wrote: My generic Handler would create a GeneratedMessage and look for the field messageType. Based on the value of the messageType, a particular handler will be invoked. This is basically what I have done, for my protobuf RPC implementation. If you

[protobuf] Generic Message Dispatch and Message Handler

2010-10-26 Thread maninder batth
Is any one aware of a Sample code that would allow messages to be dispatched in a generic fashion on the client side and receive and locate the correct Message Handler on the server side in Java, given client and server are remote. I have a naive approach as follow message AParticularRequest {