N
N
nikesport2014-11-11 08:16:43
Android
nikesport, 2014-11-11 08:16:43

How to deploy socketserver to glassfish?

Help people. I want to write android client and java server through socketserver. The question is how to deploy serversocket under glassfish and communicate with it through the android client without returning any html jsp and so on. I want to do this because I want to use dbpc DataSource

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one pavel, 2014-11-11
@onepavel

From what I've heard, glassfish is more of a servlet container.
But I googled using the phrase "glassfish ServerSocket"
in the first lines of the issue there was a link
stoflru.org/questions/23632027/is-it-possible-to-i...
I would suggest you jetty www.eclipse.org/jetty
there you can do this way

public class SimplestServer
{
    public static void main(String[] args) throws Exception
    {
        Server server = new Server(8080);
        server.start();
        server.join();
    }
}

there were several success stories on habré

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question