SolvedPrivate

Java listener issue

Posted on 2013-12-24
4
53 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
  • 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows 10 IE Certificate Issue 10 51
how to install java on RHEL image on EC2 4 40
What's wrong with this code? 4 26
java mysql insert application 14 27
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…

840 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