WFServlet.java.

Architect's Corner
Designing asynchronous J2EE architectures with JMS
by Satagopan Rajagopalan
Listing 1. WFServlet.java.


  public void doPost (HttpServletRequest request,
               HttpServletResponse response)
       throws ServletException, IOException {

    // retrieve the parameters and create writers to respond to client

       t=new ProcessThread(data);//data encapsulates the Input
                                                    information
       t.start();
  // a JSP page with  banner ads can also be displayed
       out.println(“<HTML><HEAD><meta http-equiv=\”Refresh\”
                                         Content=\”10 ; URL =
http://localhost:8080/servlets/StatusServlet><TITLE>”);
       out.println(title);
       out.println(“</TITLE></HEAD><BODY>”);
       out.println(“<H1>” + title + “</H1>”);
       out.println(“<P>Your Request will be completed in 60 Seconds” );
       out.println(“</BODY></HTML>”);
  }

Featured

Upcoming Events

AppTrends

Sign up for our newsletter.

I agree to this site's Privacy Policy.