JMS doesn't have such an automatic semantic for creating queues.
Queues + selectors will do it, but it won't scale.
There is no index backing the selector.
The only way you could achieve it scalably would be use
a single topic and then create Durable Topic Subscriptions
for each "arg" value.
But
Hello,
if you don't know the number of queues at the time the app server is started,
it might be possible to create queues programmatically, at runtime.
But I don't know if programmatically created queues are full fledged queues. I
don't know if:
- they can be clustered
- messages are still acc