문제

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.

도움이 되었습니까?

해결책

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.

다른 팁

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top