4
votes

I am developing a webapp using Spring and there are several other apps that are influenced by the information generated in mine. Basically they want to know when a change has been made in the data I manage. This data can be filtered by a certain A property.

Since the number of apps to "subscribe" to this information is variable, I thought about implementing a JMS publisher/subscriber model in which I create queues according to the filtering A property and then notify of changes to that queue. All subscribers would then receive the notification through their JMS listeners.

Is this scenario even possible? That is, can I embed a JMS queue in my Spring webapp (how?) and can I create these queues dynamically (i.e. I create queues for my A catalogue, then if a new element gets added to that catalogue, a new queue should be created dynamically without human intervention). Or is there any better solution to create this filtering functionality?

1
if i am not mistaken you cannot create dynamic queues as and when you want as you create a fixed set of queues on the server machine in any env which you use in your code. thats one drawback for the above designvikeng21
then how would you implement such functionality? Is there a way to filter messages in a single JMS queue?MichelReap

1 Answers