Answer the question
In order to leave comments, you need to log in
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
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();
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question