Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is preferable way to pass objects between server and client?

Good day. I develop server-client application with Glassfish+ObjectDB(embeded mode) on serverside and Android application on client side. What is prefreable way (with respect to traffic and security) to send data that stored as java objects in ObjectDB to android application? (Data must be encrypted.) I think about:

  • pass serializable objects through stream input/output.
  • pass data as XML/JSON format.

Or may be there is other way?

Thx for help.


1 Answers

You can try Protobuf http://code.google.com/p/protobuf. Less traffic and easy to be integrated.

like image 126
Qiang Jin Avatar answered Dec 08 '25 08:12

Qiang Jin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!