[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Algorithm broken in WildcardAddressManager

ataylor do-not-reply at jboss.com
Tue Jan 6 06:39:45 EST 2009


ok, so instead of adding a mapping for an address when the first binding is added we do this for each allowable address. for queues this is no different as its always added anyway, but for topics there'll be a mapping which contains an empty bindings object. This means that when a new consumer registers with a wildcard queue i can garauntee that theres always a mapping to check. so lets say the wildcard topic is topicjms.topic.* i can search the mappings to make sure that binding topicjms.topic.A also gets this binding registered with it. Before i couldn't do this which is why i was pre calculating the whole map.

actually come to think of it, we could remove allowable destinations completely and for containsDestination we could just use the keyset of the mappings.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199729#4199729

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199729



More information about the jboss-dev-forums mailing list