I'm trying to use PB as a means to send data from a C++ system to a
Java-based ESB with BEEP as the underlying transport.  For now, I'm
using a test Java client to inject messages, just to ensure that the
ESB is both listening and capable of processing the inbound messages.
I've validated that my messages are coming through, which is
wonderful.  However, the extensions aren't working properly - on the
receiving end, the object has the extension set as unknown fields.

Here's the proto file I'm using (test.proto):

package crypto.esb.messaging.gpb;

message BsgRequest {
        extensions 1000 to 5000;

extend BsgRequest {
        optional int32 the_num = 1000;

The sender creates a message like this:
Test.BsgRequest req = Test.BsgRequest.newBuilder().setExtension
(Test.theNum, 5).build();

The receiver processes the inbound message as follows (payload is a
Test.BsgRequest req = Test.BsgRequest.newBuilder().mergeFrom

Any thoughts/suggestions?


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 
For more options, visit this group at 

Reply via email to