Commit c2e0bd2d authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Initialize the component before adding a new route to the component.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1225 b35dd754-fafc-0310-a699-88a17e54d16e
parent 82866d46
......@@ -75,13 +75,13 @@ public class InternalComponentManager implements ComponentManager, RoutableChann
components.put(subdomain, component);
JID componentJID = new JID(subdomain + "." + serverDomain);
// Initialize the new component
component.initialize(componentJID, this);
// Add the route to the new service provided by the component
XMPPServer.getInstance().getRoutingTable().addRoute(componentJID,
new RoutableComponent(componentJID, component));
component.initialize(componentJID, this);
// Check for potential interested users.
checkPresences();
// Send a disco#info request to the new component. If the component provides information
......
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