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,19 +10,24 @@ ...@@ -10,19 +10,24 @@
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; <%
// First, update with XMPPSettings boolean showSidebar = false;
Map xmppSettings = (Map)session.getAttribute("xmppSettings"); // First, update with XMPPSettings
Iterator iter = xmppSettings.keySet().iterator(); Map xmppSettings = (Map)session.getAttribute("xmppSettings");
while(iter.hasNext()){ Iterator iter = xmppSettings.keySet().iterator();
String name = (String)iter.next(); while(iter.hasNext()){
String value = (String)xmppSettings.get(name); String name = (String)iter.next();
JiveGlobals.setProperty(name, value); String value = (String)xmppSettings.get(name);
} 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