-
1. Re: Arbitrary destination addresses and predicate based subscribers
jbertram Nov 21, 2012 5:58 PM (in response to metula)I think what you're looking for is called a "topic hierarchy" (at least in our documentation). Look at the <HORNETQ_HOME>/examples/jms/topic-hierarchies example and also read this.
Does that fit your need?
BTW, I'm not sure what this has to do with AMQP. Can you clarify?
-
2. Re: Arbitrary destination addresses and predicate based subscribers
metula Nov 21, 2012 6:11 PM (in response to jbertram)If I understand correctly, Topic Hierarchies allow us to create a queue (subscriber), for example queue.event.# which will receive messages sent to queue.event.abc, queue.event.abc.def and so on - but these queues must be pre-defined.
The reason I mention AMQP is because the sort of message routing I'm looking for is native to the AMQP architecture of message exchanges, routing keys, bindings etc.
-
3. Re: Arbitrary destination addresses and predicate based subscribers
jbertram Nov 23, 2012 3:53 PM (in response to metula)If I understand correctly, Topic Hierarchies allow us to create a queue (subscriber), for example queue.event.# which will receive messages sent to queue.event.abc, queue.event.abc.def and so on - but these queues must be pre-defined.
That's correct.
The reason I mention AMQP is because the sort of message routing I'm looking for is native to the AMQP architecture of message exchanges, routing keys, bindings etc.
Understood. JMS doesn't define anything like this.
-
4. Re: Arbitrary destination addresses and predicate based subscribers
jbertram Nov 26, 2012 10:26 AM (in response to metula)You originally asked about JMS, but I do believe you could do this with the HornetQ Core API. I think you should be able to use org.hornetq.api.core.client.ClientSession.createQueue(SimpleString. SimpleString) to create the queues you want bound to the addresses you want dynamically.