[jdev] JEP-114 - what is the "component name"?

Ralph Meijer jabber.org at ralphm.ik.nu
Thu Jul 21 13:58:23 CDT 2005


On Thu, Jul 21, 2005 at 03:23:30PM -0300, Gaston Dombiak wrote:
> I've been reading again the JEP-114 (Jabber Component Protocol) since I 
> wanted to check the formal definition of what is called the "component 
> name". In the JEP I see that the example is using 'plays.shakespeare.lit'. 
> Since in general the spec is using 'shakespeare.lit' as the hostname of the 
> server I assumed that the "component name" is formed by the component 
> subdomain + the server hostname. So my question is: should "component name" 
> be of the form <subdomain>.<server-hostname>? Is it correct to just use 
> <subdomain>?

You may use any hostname, it doesn't have to be local. In fact, if you
don't need the component to be reachable from other servers, but only
available for the users of your server, you can assign it
'component.localhost' or 'component'. A server will usually first check
known hostnames, before trying DNS lookup.

-- 
Groetjes,

ralphm



More information about the JDev mailing list