Java listener issue
Posted on 2013-12-24
I have a program that cannot be stopped due to business requirements. However, the program needs to reload some dictionaries if they are updated. I am thinking of using Redis to communicate between the program and the application which modify the dictionaries.
However, except for redis, what else can I do? Can I use a listener within the program to monitor whether the dictionaries are modified? If so, how to program the listener.
My program runs as a command process under Linux, and the application that modifies the dictionaries is a Java servlet.