On Mon, Aug 10, 2009 at 9:54 AM, Michael Jakl<[email protected]> wrote:
> Routing via subdomain seems to be the only viable alternative. Only
> broadcasting to all modules might work too, but doesn't sound as
> clean.

Agreed, this also seems to be what the spec assumes. Reading further
into the spec, it turns out the this type of routing is used for all
message stanzas, rather than extension namespaces.

So, in addition to the component support (using the component
protocol), how about we allow for registering modules with a
subdomain? For example, adding a XMPPServer.addModule(String
subdomain, Module module) method. Then we do a
SubdomainHandlerDictionary working similar to the
NamespaceHandlerDictionary which takes care of finding the handler.

That way, we can have the server respond to different subdomains in an
easy way. What do you think?

/niklas

Reply via email to