Re: [protobuf] Distributing messages via extension

2011-11-15 Thread Jason Hsueh
You only need to register the extensions that you want to use. Unknown extensions will get preserved as unknown fields (at least in the C++ and Java implementations; python does not support unknown fields), and when you reserialize the message those will be included. The registered receivers will

Re: [protobuf] Distributing messages via extension

2011-11-15 Thread Neil Gendzwill
Thanks for your prompt reply! If I understand you correctly: I provide an ExtensionRegistry to Netty's decoder that has no entries, just to avoid the null exception. I then reserialize the message and pass it to the appropriate handler, who decodes it using their own ExtensionRegistry that