Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the alternatives of JMS? [closed]

Tags:

java

jms

Do we have any alternative for JMS?

Problem statement We have a component called Configuration Manager, which contains configuration of the application. This configuration manager is used by 4 instances of the application. Now , any time an administrator changes the configuration, it should get notified to all the instances of the application.

like image 723
Shekhar Avatar asked Jan 20 '26 18:01

Shekhar


2 Answers

It depends on what you are trying to do.

  1. For use in the same jvm you could use a BlockingQueue
  2. You could have a look at Terracotta for some of their shared network maps for e.g.
like image 107
LenW Avatar answered Jan 23 '26 09:01

LenW


Even after your update, your question is still not crystal clear. Given the information you provided, I see two options:

  • notification. Use indeed JMS or some other notification mechanism. That depends on the technology stack: is it web applications? desktop application? does it run in an application server?
  • polling. Each application has a background thread that polls the configuration manager (or the database?) for changes. When changes are detected, the whole configuration is reloaded.

For the problem of configuration refresh, I would rather go for polling (at least that's what we used for a similar requirement and it worked fine).

like image 24
ewernli Avatar answered Jan 23 '26 09:01

ewernli



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!