开发者

server javaEE technology

I want to build a server that communicates with an android phone

based on a request/response model At first i thought i will use Httpservlets and communicate with the android

by Http messages. but i need to be able to access a pretty big object with every

request so i guess i cant really transfer the object to the servlet.

so i know this is a pretty newbish question but iv'e been sear开发者_JS百科ching for days

what kind of java EE tech should i use(i thought of EJB but as i understand they cant communicate with android)?

Thanks in advance


I think the right question is how to implement service layer for your android application:

Basically there are two options REST based web services and SOAP. Android's support for SOAP is inadequate and I personally prefer REST over soap any day. If you have decided to go with REST, your options in Java are Jersey, RESTlets or Spring Rest services. I will prefer Jersey, but you can also look in to Spring ( although not strictly complaint with the JSR).

(note: look in "SO" for comparison on various rest based frameworks in Java)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜