Using Protocol Buffers in J2EE?

Posted by mlaverd on Stack Overflow See other posts from Stack Overflow or by mlaverd
Published on 2010-04-27T11:42:45Z Indexed on 2010/04/27 11:53 UTC
Read the original article Hit count: 479

Filed under:
|
|
|

Hello everyone,

I have coded a server that uses Protocol Buffers in Java. A client talks to it using PB. I'd like to migrate the server code to J2EE and take advantage of the containers' built-in features like clustering.

How can I have a service that receives PB messages and interprets them properly, and then gets them handled?

I was thinking of a dedicated type of servlet, but how can it be done?

I'm a J2EE newbie... I'm not familiar enough with J2EE application servers to know if there is a way to make that happen.

P.S. I'm looking for a solution that uses TLS sockets directly. No overhead-causing middleman protocols like HTTP are welcome here.

P.P.S. Open source solutions only please.

© Stack Overflow or respective owner

Related posts about java

Related posts about protocol-buffers