1 Reply Latest reply on Feb 7, 2002 5:52 AM by sebaseba

    Nested topics

    ltullman

      Hello,

      I have a question about the way topic mappings are done in JBossMQ. Is it possible (with the current codebase) to create a topic with an inherent hierarchial structure?

      For example, a subscriber is interested in a certain topic ( i.e. 'topic/Transaction/objectType/ObjectSubtypeA/SubsubTypeB/' ) and would create the topic and register itself as a subscriber to that topic. A publisher will post messages to topics that either match this topic completely, or would match several higher level elements ( such as 'topic/Transaction/objectType/ObjectSubtypeA/' ). Is there a mechanism to be able to route these messages to subscribers that may not be subscribed to the exact topic, but to a sub-element of that topic?


      Thanks,

      Leif Ullman

        • 1. Re: Nested topics
          sebaseba

          AFAIK, the JMS API does not specify hierarchical topics, so you will have to code it by hand.

          If you are not too worried about performance you could create MDB's that listen to the top-level topic and automatically resend the message to lower-level topics.

          Sebastian