[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 05:27:37 EST 2009


The main reason for doing it this way was 1 to keep calculating possible matching mappings out of the critical path, i.e. during send, and because since we don't add a mapping for topics, since there aren't any bindings, it was to make sure that no topics were missed. 

However, after a rethink theres now a better way to do this. Now there is a 'Bindings' object we can now have a mapping with an empty bindings object. All i need to change is to add an empty Bindings object when a destination is added. i.e. a consumer registers with a new queue topicjms.topic.*, at this point i can search the mappings to find topicjms.topic.A, which currently only has an empty bindings object and add the appropriate binding to this. this makes the code simpler and more scalable, ive added a test for a large number of dots and theres no problem.

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

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



More information about the jboss-dev-forums mailing list