Commit c6e6c7f8 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Replaced with XMPPContextListener. JM-424

git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@3002 b35dd754-fafc-0310-a699-88a17e54d16e
parent a1ba1cfe
/**
* $RCSfile$
* $Revision$
* $Date$
*
* Copyright (C) 2004 Jive Software. All rights reserved.
*
* This software is published under the terms of the GNU Public License (GPL),
* a copy of which is included in this distribution.
*/
package org.jivesoftware.messenger;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServlet;
public class XMPPBootServlet extends HttpServlet {
private XMPPServer server;
private Object serverLock = new Object();
public void init(ServletConfig servletConfig) throws ServletException {
synchronized (serverLock) {
// only start up if it hasn't already...
if (XMPPServer.getInstance() == null) {
if (server == null) {
server = new XMPPServer();
}
}
}
}
public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException {
// does nothing
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment