java - Best practice solution to create a Web Service for an Android app -


I am planning to write a web service in Java that connects to a MySQL database And computes

then a Android app will be connected to this web service and will process information.

Initially I had thought about using the XML files, but I was advised that this is not the best way to practice, and part of the service is light weight Will not done. I should use JSON .

What is the correct architecture and solution for my problem?

In addition to this, the Java Web Service can be run without a tomcat, directly by java by jar?

Any document or link will be useful.

Yes, to make it better for Android, JSON, its original API (built) and its Apart from this, its recommendation has been recommended to use the restalts service for the same reasons (performance, lighter)

Regarding the webservice without any laxity, I'm not sure that this It is possible because you always need a container so that you can manage and run your code Able to

Here's a nice tutorial for creating a restitial service using Jersy.

Shows sample data as XML, you can convert to JSON.


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -