I don't want to send the whole enchilada on the wire - just the
descriptor for the message being sent.

As I showed above, I know how to get the descriptor on the wire, but
the other side (getting the descriptor off the wire and parsing the
message using it) is unclear to me.

On Jul 24, 2:29 pm, Christopher Smith <cbsm...@gmail.com> wrote:
> You probably need a FileDescriptorSet, which has the whole enchilada.
>
> --Chris
>
> On Jul 23, 2010, at 12:08 PM, David <dudeh...@yahoo.com> wrote:
>
> > I'm trying to send a self-describing message from a JMS producer to a
> > consumer.
>
> > On the producer I have something like:
>
> >        Descriptor desc = builder.getDescriptorForType();
> >        DescriptorProto proto = desc.toProto();
>
> > Then I send the bytes of the proto and the bytes of the built object
> > (from builder).
>
> > On the consumer side, I can't figure out how to take the
> > DescriptorProto I get on the wire and make a Descriptor out of it
> > which I can use to parse the bytes of the object using
> > DynamicMessage.  I've seen one mention of using FileDescriptorProto,
> > but I'm not working with those... just DescriptorProto.
>
> > Can someone point me in the right direction?
>
> > Thanks,
> > -David-
>
> > --
> > 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 
> > athttp://groups.google.com/group/protobuf?hl=en.

-- 
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.

Reply via email to