title: Is there a good Java networking library?
body: <p>I'm currently searching for a Java networking library. What I want to do is sending XML, JSON or other serialized messages from a client to another client and/or client to server.</p>
  
  <p>My first attempt was to create an POJO for each message, plus a MessageWriter for sending and a MessageReader for receiving it. Plus socket and error handling. Which is quite a lot of error prone work.</p>
  
  <p>What I'm looking for is a a higher level library which abstracts from sockets. Furthermore it should supports something like code generation for the messages.</p>
  
  <p>Google's Protocol Buffers (<a href="http://code.google.com/apis/protocolbuffers/" rel="noreferrer">http://code.google.com/apis/protocolbuffers/</a>) looks promising. But are there alternatives? The emphasis is not on speed or security (at the moment), it is just supposed to work reliable and with a low amount of implementation time.</p>