String msg = req.getParameter("op");
if ("bind".equals(msg)) {
try {
final Context context = new InitialContext();
context.bind("java:jboss/web-test", "Test");
context.bind("java:comp/web-test", "Test");
context.bind("java:/web-test", "Test");
} catch (NamingException e) {
throw new ServletException(e);
}