On 05/19/2015 10:19 AM, Rob Godfrey wrote:
Gordon: I'm a bit surprised if you needed to create a new virtual host
... from 0.32 onwards the Java Broker supports the notion of aliases
for virtual hosts... on type of alias is the "hostnameAlias" which
when used on a port (as it is by default) will map the connection to
the default virtual host if the hostname in the open frame matches a
valid name for the address the port is bound to (and there isn't a
virtualhost with an exact match for the given name - in which case
that would be used).

Quite possible I was doing something wrong. What I was seeing initially was:

[0xe6a620]:  -> SASL
[0xe6a620]:0 -> @sasl-init(65) [mechanism=:ANONYMOUS, initial-response=b""]
[0xe6a620]:  <- SASL
[0xe6a620]:0 <- @sasl-mechanisms(64) 
[sasl-server-mechanisms=@PN_SYMBOL[:ANONYMOUS]]
[0xe6a620]:0 <- @sasl-outcome(68) [code=0]
[0xe6a620]:  -> AMQP
[0xe6a620]:0 -> @open(16) [container-id="79ef0a4f-8be7-4e3a-bde6-30fe29c258f5", 
hostname="localhost"]
[0xe6a620]:0 -> @begin(17) [next-outgoing-id=0, incoming-window=2147483647, 
outgoing-window=1]
[0xe6a620]:0 -> @attach(18) [name="sender-xxx", handle=0, role=false, snd-settle-mode=2, 
rcv-settle-mode=0, source=@source(40) [address="amq.fanout", durable=0, timeout=0, dynamic=false], 
target=@target(41) [address="amq.fanout", durable=0, timeout=0, dynamic=false], 
initial-delivery-count=0]
[0xe6a620]:  <- AMQP
[0xe6a620]:0 <- @open(16) [container-id="9d5a0c75-0afd-4ccf-90ff-8a2e8eee1d32", max-frame-size=32768, channel-max=0, 
properties={:product="qpid", :version="0.32", :"qpid.build"="Unversioned directory", 
:"qpid.instance_name"="Broker"}]
[0xe6a620]:0 <- @close(24) [error=@error(29) [condition=:"amqp:not-found", 
description="Unknown hostname in connection open: 'localhost'"]]
[0xe6a620]:  <- EOS
[0xe6a620]:0 -> @close(24) []
[0xe6a620]:  -> EOS

After adding the virtual host called 'localhost' I didn't see this error anymore.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org
For additional commands, e-mail: users-h...@qpid.apache.org

Reply via email to