I have an integration layer that I'm using to receive data. I'd like to
publish this data to Artemis to make it available to multiple applications.
The data comes from multiple sources, and the data has
different classifications.

So, a simple example would be banks and currency. I'm listening to multiple
banks to get the current exchange rate they have for multiple currencies.

My first thought was to publish the messages to one topic, and set the
JMSType in the header to "Bank-currency" and then create a queue with a
filter for each. I know how to implement this with static queues in the
broker.xml  I could set time-to-live to something small, so the messages
would expire and not pile up. But this seems like a clumsy solution,
especially since a majority of the combinations won't be used for a while.
A better way would be to allow the consumers to create a queue with a
filter.

Is this the correct approach? Is there a way then to dynamically create the
queues with a filter?

If not, what's a wiser pattern here?

Thanks

Reply via email to