Re: Which data format for end-to-end application

[email protected]
Newsgroups gmane.comp.java.sun.kvm
Message-ID <25512655.545771191047707776.JavaMail.tomcat@sdcst12.sjc.collab.net>
Thank you all for your replies and support.

I'm now hesitating between the pros and cons of JSON vs RMI.
I am going to be sending a lot of images (PNG) to the midlet so the lightest the interchange format, the best.

From what I understand (correct me if I'm wrong):

Using JSON will ensure more portability as the output could be used on other non JAVA based clients as well. BUT it will be heavier in terms of data transfer.

Using RMI and sending serialized objects directly will be lighter in tems of bandwidth but less portable as the client will inevitably need to be a JAVA client.

I guess I will go for RMI for now and eventually adapt my server code to provide JSON or XML format when needed.

Let me know what you think.
[Message sent by forum member 'azpublic' (azpublic)]

http://forums.java.net/jive/thread.jspa?messageID=237683

===========================================================================
To unsubscribe, send email to [email protected] and include in the body
of the message "signoff KVM-INTEREST".  For general help, send email to
[email protected] and include in the body of the message "help".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.