[jdev] Pubsub node namespaces

Ralph Meijer jabber.org at ralphm.ik.nu
Wed Jun 29 05:44:24 CDT 2005

On Wed, Jun 29, 2005 at 04:06:06PM +1000, Steve Smith wrote:
> Hi,
> I'm currently working with ejabberd for a possible pubsub application.
> By default ejabberd places 'instant' user nodes in a path of
> 'home/<server>/<user>', and that namespace is free for the user to
> create their own nodes under; creation of nodes outside that namespace
> is not-allowed.  Is this the norm, and is there any JEP recommending a
> namespace layout?

No. Node identifiers are defined to be opaque. Any (visually implied)
hierarchy or other ordering is implementation specific.

I don't think including owner information in the node identifier is a
good idea, by the way. What if the owner of the node changes? Also, a
node can have multiple owners.

Somewhat related, JEP-0060 does provide the concept of Collection Nodes,
which can be assigned subnodes. This can result in a directed graph of
nodes without cycles. Such a structure doesn't have to be exposed in the
node id.



More information about the JDev mailing list