SolvedPrivate

Java listener issue

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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
Configure a Bean in an XML file 4 49
tomcat startup error 5 136
Using jdbcTemplate.batchUpdate to improve INSERT performance 6 27
What browser will run Java? 7 125
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

749 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