Martin Ritchie wrote:
The java code is still using amqp-0.8 which as Gordon says requires a leading '/'. The java client url parsing requires the '/' for the url to be well formed. The java broker never enforced an initial '/' so when the vhost implementation was done it was done with out the '/'. Which made sense as it is a wasted byte in network traffic. So currently I believe the client code strips off the '/' after verifying the vhost before sending over the wire to save that extra byte.
Martin, Thanks for the clarification and correction. Looking at the latest spec, it *does* seem to still mandate a leading '/'. That rule is attached to the 'path' domain of which the virtual-host field value is an instance. I missed that on re-reading the spec, I suspect if other implementations don't honour that they have done the same.
