KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > example > ServiceFrontendServlet


1 package example;
2
3 import java.io.*;
4 import javax.annotation.*;
5 import javax.servlet.*;
6 import javax.servlet.http.*;
7
8 public class ServiceFrontendServlet extends HttpServlet {
9   @Resource(name="hessian/HelloService")
10   private HelloService _helloService;
11
12   public void doGet(HttpServletRequest req, HttpServletResponse resp)
13     throws IOException, ServletException
14   {
15     PrintStream out = new PrintStream(resp.getOutputStream());
16
17     out.println("service result: " + _helloService.hello());
18   }
19 }
20
21
Popular Tags