I am running it as independent process. Using the
HttpServer.createSimpleServer() following the code snippet of server main
class -
HttpServer server = HttpServer.createSimpleServer();
server.getServerConfiguration().addHttpHandler(new
FormHttpHandler(),"/uploadFileForm");
server.getServerConfiguration().addHttpHandler(new
UploaderHttpHandler(), "/uploadFile");
server.getServerConfiguration().setJmxEnabled(true);
logger.info("Application started");
try {
server.start();
System.out.println("Press any key to stop the server...");
System.in.read();
}
--
View this message in context: http://grizzly.1045725.n5.nabble.com/File-upload-loadtesting-tp4383816p4385338.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.