Commit afdefcb4 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Shut down connection provider (JM-120).


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@895 b35dd754-fafc-0310-a699-88a17e54d16e
parent 502f0b3b
...@@ -10,10 +10,13 @@ ...@@ -10,10 +10,13 @@
org.jivesoftware.messenger.auth.UnauthorizedException, org.jivesoftware.messenger.auth.UnauthorizedException,
org.jivesoftware.messenger.JiveGlobals, org.jivesoftware.messenger.JiveGlobals,
java.util.Map, java.util.Map,
java.util.Iterator" java.util.Iterator,
org.jivesoftware.messenger.ConnectionManager,
org.jivesoftware.database.DbConnectionManager"
%> %>
<% boolean showSidebar = false; <%
boolean showSidebar = false;
// First, update with XMPPSettings // First, update with XMPPSettings
Map xmppSettings = (Map)session.getAttribute("xmppSettings"); Map xmppSettings = (Map)session.getAttribute("xmppSettings");
Iterator iter = xmppSettings.keySet().iterator(); Iterator iter = xmppSettings.keySet().iterator();
...@@ -22,7 +25,9 @@ ...@@ -22,7 +25,9 @@
String value = (String)xmppSettings.get(name); String value = (String)xmppSettings.get(name);
JiveGlobals.setProperty(name, value); JiveGlobals.setProperty(name, value);
} }
// Shut down connection provider. Some connection providers (such as the
// embedded provider) require a clean shut-down.
DbConnectionManager.getConnectionProvider().destroy();
%> %>
<%@ include file="setup-header.jspf" %> <%@ include file="setup-header.jspf" %>
......
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