Commit d7b6d92a authored by Derek DeMoro's avatar Derek DeMoro Committed by derek

Datasource information should be stored in messenger_home.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@97 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6464fd96
...@@ -113,6 +113,16 @@ ...@@ -113,6 +113,16 @@
response.sendRedirect("setup-admin-settings.jsp"); response.sendRedirect("setup-admin-settings.jsp");
return; return;
} }
else{
Map xmppSettings = (Map)session.getAttribute("xmppSettings");
Iterator iter = xmppSettings.keySet().iterator();
while(iter.hasNext()){
String name = (String)iter.next();
String value = (String)xmppSettings.get(name);
JiveGlobals.setProperty(name, value);
}
}
} }
} }
......
...@@ -51,18 +51,22 @@ ...@@ -51,18 +51,22 @@
} }
// Continue if there were no errors // Continue if there were no errors
if (errors.size() == 0) { if (errors.size() == 0) {
JiveGlobals.setProperty("xmpp.domain",domain); Map xmppSettings = new HashMap();
JiveGlobals.setProperty("xmpp.chat.domain",chatDomain);
JiveGlobals.setProperty("xmpp.socket.plain.port",Integer.toString(port)); xmppSettings.put("xmpp.domain",domain);
JiveGlobals.setProperty("embedded-web.port",Integer.toString(embeddedPort)); xmppSettings.put("xmpp.chat.domain",chatDomain);
JiveGlobals.setProperty("xmpp.socket.ssl.active",""+sslEnabled); xmppSettings.put("xmpp.socket.plain.port",Integer.toString(port));
JiveGlobals.setProperty("xmpp.socket.ssl.port",Integer.toString(sslPort)); xmppSettings.put("embedded-web.port",Integer.toString(embeddedPort));
JiveGlobals.setProperty("xmpp.auth.anonymous", "true" ); xmppSettings.put("xmpp.socket.ssl.active",""+sslEnabled);
// JiveGlobals.setProperty("xmpp.socket.ssl.storeType",storeType); xmppSettings.put("xmpp.socket.ssl.port",Integer.toString(sslPort));
// JiveGlobals.setProperty("xmpp.socket.ssl.keystore",keystore); xmppSettings.put("xmpp.auth.anonymous", "true" );
// JiveGlobals.setProperty("xmpp.socket.ssl.keypass",keypass); session.setAttribute("xmppSettings", xmppSettings);
// JiveGlobals.setProperty("xmpp.socket.ssl.truststore",truststore);
// JiveGlobals.setProperty("xmpp.socket.ssl.trustpass",trustpass); // JiveGlobals.setXMLProperty("xmpp.socket.ssl.storeType",storeType);
// JiveGlobals.setXMLProperty("xmpp.socket.ssl.keystore",keystore);
// JiveGlobals.setXMLProperty("xmpp.socket.ssl.keypass",keypass);
// JiveGlobals.setXMLProperty("xmpp.socket.ssl.truststore",truststore);
// JiveGlobals.setXMLProperty("xmpp.socket.ssl.trustpass",trustpass);
// update the sidebar status // update the sidebar status
session.setAttribute("jive.setup.sidebar.2","done"); session.setAttribute("jive.setup.sidebar.2","done");
......
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