N
N
nikesport2014-11-12 08:55:25
Java
nikesport, 2014-11-12 08:55:25

How to write server side for android client in java?

I am writing the server part for Android in Java, so the question arose what technologies to use? JavaEE is excluded because the server side should be like the console. I found only SocketsServer, but the server under which you can host this socketserver was not found. Please tell me, maybe there are some other technologies that are more convenient, new or serversocket is the best option, or in general, if possible, tell us how the server part is written in Java "usually"

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
protven, 2014-11-12
@protven

The Java back end is "usually" written in Java. If you really want to, then you can use scala, clojure, or something else that runs in jvm. What is the question? What should your server handle? What requests come to it from clients, by what protocol and what happens to them next?

S
Sergey, 2014-11-12
Protko @Fesor

nikesport : do you write a rest service? Well, write rest service. Take some Jersey and rejoice.

S
Sergey Lerg, 2014-11-12
@Lerg

Use Google App Engine whenever possible.

R
ruslanys, 2014-11-20
@ruslanys

I'll tell you what, the web as a server side is the most popular server-side development option. In general, for all languages ​​and technologies. But! As far as I understand you, you want to make interaction on sockets! The idea is not bad, I once also had a similar illness. In this case, I want to advise you to read what is the difference between Java IO and Java NIO. As an example: Java NIO can handle 4 times more connections (tested from my own experience). There is one problem: it is much more difficult to write the server side in Java NIO! But! There are 2 amazing frameworks for this: Apache Mina/Netty. Mina performed poorly on Android, but I recommend Netty! If you can't figure out the framework, throw a PM message, I'll send you an example project.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question