views:

109

answers:

1

I'm currently playing around with java.nio, which I haven't been using for a long time. I use Google Protocol Buffers for serialization and for communication with other parts of my system. Now I can't figure out if/how it is possible to get use protobuffers with java.nio classes.

I can't imagine that Google is using only "one thread per connection" with networked protocol buffers. Could anyone give me a pointer on how to integrate the two?

Thanks in advance!
Martin

+2  A: 

I suggest Netty, specifically this example that is Netty using ProtoBufs.

Jacob Tomaw
Thanks for the pointer. I wanted to avoid adding another library, but I'll for sure have a look at Netty.
Martin C.