I guess it boils down to how users will utilise the virtual hosts. At
present, the only *really* useful feature around virtual hosts (afaik) is
the ability to create queues/topics to be created on broker startup - the
real purpose of virtualhosts.xml on the java broker side.

I just thought that an empty string is a little confusing in terms of a
'name' for a virtual host. Would be nicer imho to mark a defined vh as
default in the config.xml and use that where no vh specified on the
connection url ?

Marnie



On 2/6/07, Robert Godfrey <[EMAIL PROTECTED]> wrote:

> From a pragmatic point of view, either option would appear exactly the
> same
> to the client in general terms (I think), so it really could be
something
> decided by the implementation (and not necessarily explicitly defined by
> the
> spec).



As long as all clients were set up the same way... if some were using ""
and
some were using  <actualname>, then obviously the beviour would be
different
in the two cases.

That said, I personally prefer option ii) as well, because if there ever
> comes a time where more stuff is attached to the virtual host than just
a
> name, it would be simpler to support, I think.



I think the issue is that the whole purpose of virtual hosts is somewhat
unclear.  I think the general idea is to be along the same lines as
virtual
hosts in an http server, so the virtual host might well be seen as
something
like the dns name or ip address + port that the client knows the server as
(before proxying etc).  In that case there is very likely the case where
you
want to map many names to a single virtual host... however in this
scenario
you would very definitely also want the client to be populating the
virtual
hosts parameter on every connection open.

-- Rob

Reply via email to