[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 07:14:57 EST 2009


anonymous wrote : Allowable addresses are only used if checkAllowable = true.
  | 
  | It's valid for the postoffice to have no allowable addresses, and wildcards must work then too.
  | 
  | Checkallowable is really only true for JMS, where we have to trap sends to non-existent topics. 

it will still work when there are no allowable addresses. Their calculated from the mappings not the addresses.  If we add a mapping for each allowable address, even if the bindings object is empty then we don't need to maintain allowable addresses. the contains destination method just checks the the keyset of mappings instead.

anonymous wrote : That works if the queue already exists at the time the wildcard subscription is added. But what if the queue is added *after* the subscription is added? 

It does i have a test to cover this.

anonymous wrote : Only if we only allow routing to allowable addresses at all times (I.e. effectively force checkAllowable to always be true)

see earlier response.

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

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



More information about the jboss-dev-forums mailing list