1 11 12 package org.jivesoftware.messenger; 13 14 import javax.servlet.ServletConfig ; 15 import javax.servlet.ServletException ; 16 import javax.servlet.ServletRequest ; 17 import javax.servlet.ServletResponse ; 18 import javax.servlet.http.HttpServlet ; 19 20 public class XMPPBootServlet extends HttpServlet { 21 22 private XMPPServer server; 23 private Object serverLock = new Object (); 24 25 public void init(ServletConfig servletConfig) throws ServletException { 26 synchronized (serverLock) { 27 if (XMPPServer.getInstance() == null) { 29 if (server == null) { 30 server = new XMPPServer(); 31 } 32 } 33 } 34 } 35 36 public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException { 37 } 39 } 40 | Popular Tags |