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 { // fields required string messageType = x; } Using Message interface, i can write any Message to bytes and send over the network. On Client Side, 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. I am wondering if there are better approaches out there. -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to proto...@googlegroups.com. To unsubscribe from this group, send email to protobuf+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.