[Standards-JIG] Mistake in example of component JEP?

Matt Tucker matt at jivesoftware.com
Sun Oct 3 19:48:38 UTC 2004


Hello all,

The component JEP (http://www.jabber.org/jeps/jep-0114.html) doesn't
show how a component registers itself as a particular JID (e.g.
component.example.com). Example 1 XML in the JEP is:

--------------------
C: Component sends stream header to server

<stream:stream
    xmlns='jabber:component:accept'
    xmlns:stream='http://etherx.jabber.org/streams'
    to='shakespeare.lit'>

S: Server replies with stream header, including StreamID

<stream:stream
    xmlns:stream='http://etherx.jabber.org/streams'
    xmlns='jabber:component:accept'
    from='shakespeare.lit'
    id='3BF96D32'>

C: Component sends handshake element

<handshake>aaee83c26aeeafcbabeabfcbcd50df997e0a2a1e</handshake>

S: Server sends empty handshake element to acknowledge success

<handshake/>
--------------------

Should that example actually be the following? :

--------------------
C: Component sends stream header to server

<stream:stream
    xmlns='jabber:component:accept'
    xmlns:stream='http://etherx.jabber.org/streams'
    from='plays.shakespeare.lit'
    to='shakespeare.lit'>

S: Server replies with stream header, including StreamID

<stream:stream
    xmlns:stream='http://etherx.jabber.org/streams'
    xmlns='jabber:component:accept'
    from='shakespeare.lit'
    to='plays.shakespeare.lit'
    id='3BF96D32'>

C: Component sends handshake element

<handshake>aaee83c26aeeafcbabeabfcbcd50df997e0a2a1e</handshake>

S: Server sends empty handshake element to acknowledge success

<handshake/>
--------------------

The only difference is that I added a "from" attribute to the client and
server packets. Also, how does a server notify a component that a JID is
already in use by another component? For example, two components can't
register as "plays.shakespeare.lit".

Regards,
Matt



More information about the Standards mailing list