users@grizzly.java.net

Re: File upload loadtesting

From: gagansnt <gagansnt_at_gmail.com>
Date: Tue, 10 May 2011 11:54:31 -0700 (PDT)

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.