[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Wild Card routing and security

timfox do-not-reply at jboss.com
Thu Sep 11 10:22:49 EDT 2008


"ataylor" wrote : I'm referring to the following code:
  | 
  | if (checkAllowable)
  |   |          {
  |   |             if (!destinations.contains(address))
  |   |             {
  |   |                throw new MessagingException(MessagingException.ADDRESS_DOES_NOT_EXIST,
  |   |                                             "Cannot route to address " + address);
  |   |             }
  |   |          }
  | 
  | If we route to address a.b.* this obviously doesn't exist as an added address, how do we handle this.#
  | 

I think you're misunderstanding how it's supposed to work.

You never route a message with a wildcard address, you *subscribe* with a wildcard address.

I.e. you create a subscription to com.reuters.newsfeeds.*

But messages always get routed to absolute addresses e.g. com.reuters.newsfeeds.uk.sport.


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

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



More information about the jboss-dev-forums mailing list