× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Ashish Kulkarni wrote:
I have a issue i have to find out in java program when
a file is updated from RPG program
Basically write a trigger in java,
Is it possible to do so, i looked at AS400File and
addFileListener, but some how it does not work.
Any suggestions.

I don't think the AS400File object is what you want to use. I think the
listeners you can attach to the AS400File object can only react to
events generated within the java application and not at a system level.

I implemented something similar using a combination of a physical file
trigger that fires a generic RPG trigger program.

The RPG trigger program parses the data sent to it and sends an entry to
a data queue. A java program monitors the data queue and reacts to the
changes.

david


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.