SolvedPrivate

Java listener issue

Posted on 2013-12-24
4
60 Views
Last Modified: 2016-02-10
Hi,

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.

Thanks alot.
0
Comment
Question by:wsyy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 39739016
If they are file-based, you can use a directory/file monitor
0
 

Author Comment

by:wsyy
ID: 39746320
They are. How can I do so?
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 255 total points
ID: 39746386
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39754357
:)
0

Featured Post

Get MySQL database support online, now!

At Percona’s web store you can order your MySQL database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
The viewer will learn how to implement Singleton Design Pattern in Java.
This video teaches viewers about errors in exception handling.
Suggested Courses

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question