throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
try {
String version = request.getParameter("version");
helloBean h1 = (helloBean) new InitialContext().lookup("java:global/jndiEJB-test-"+version+"/helloBean");
String s1 = h1.sayHello("global");
helloBean h2 = (helloBean) new InitialContext().lookup("java:app/jndiEJB-test-"+version+"/helloBean");
String s2 = h2.sayHello("app");
helloBean h3 = (helloBean) new InitialContext().lookup("java:module/helloBean");
String s3 = h3.sayHello("module");
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet globalJNDITest</title>");
out.println("</head>");
out.println("<body>");