• Subject: Re: Listening to changes in a file
  • From: "T. Konstantinovitz" <chefen@xxxxxxxxxxxxxxxx>
  • Date: Fri, 19 Jan 2001 00:02:21 +0100
  • Organization: KodeFabrikken


I have made a solution for a client in which I registered a "plain" RPG
program as a trigger program for the requested file. I sent the changed
records to a data queue, where a java program then was able to read the
the changes, by invoking the data queue read method(). If you want to
interface this mechanism with java events, you make a class running on a

thread which reads the data queue and fires events to listeners on a
event list.

Hope that it can be useful.


"DUCRET Gilles (GVA)" wrote:

> Hi all,
> We have an RPG program that write data to a file/table.
> When an instance of a table is updated we would like to generate an
> event.
> This event would be coded in Java.
> Has anybody done that?
> Is it possible to do this with component of the JT400 toolbox?
> Is there any way to write Java listeners to data queues, or something
> else?
> We have several solutions to do that but we think that something may
> already exist in the toolbox.
> Do you have any idea?
> Gilles
> **********************************************************************
> This E-mail and any files transmitted with it are confidential
> and intended for the exclusive use of the addressee(s) only.
> You should not disclose its contents to any other person.
> If you are not the intended recipient please notify the sender
> immediately.
> **********************************************************************

| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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

This mailing list archive is Copyright 1997-2022 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.