Pregunta

I am creating website using JSF. Db is SQL Server. Now I want to create mobile client. Which technology should I use to create backend service for android client? It should simply handle mobile requests, store something in Db and return some data to mobile. I want it to be Java technology.

¿Fue útil?

Solución

On android it's easy to read JSON and communicate with REST services. I strongly recommend something like that. SOAP / XML communication is much harder on android, way more plumbing

Here is a nice tutorial how to create REST services via JAX-RS.

Otros consejos

Make REST services. There are lots of other things you can use alongside it like filters and servlets. To communicate with services( RESE, Servlets and Filters) you can use Ajax calls which can pass and receive JSON objects. There are lots of tutorials available on the net to accomplish this. As for the side note, Use Hibernate at the server side. It is very flexible and comes in handy when you are processing large data.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top