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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...