|
I don't know of any way to trigger all the way down to a client running a JDBC driver. The closest thing the Toolbox has to offer is data queues. You could write a trigger on the AS/400 that writes to a DQ. On the client you would issue a DQ read that is not resolved until something is put on the queue. At that time the client gets control and can do something. On the topic of events the Toolbox does fire events but the event is highly localized. That is, the object fires an event only when it does something. Take UserSpace.class for example. It fires a 'written' event only when that specific object writes to the space. No event is fired when another object in the same JVM or a different JVM, or a different program writes to the UserSpace. This makes Toolbox event support of little value but it is all we could do based on what the server can do at this time. David Wall AS/400 Toolbox for Java "DUCRET Gilles (GVA)" <Gilles.DUCRET@lloydsbank.ch>@midrange.com on 01/18/2001 06:50:05 AM Please respond to JAVA400-L@midrange.com Sent by: owner-java400-l@midrange.com To: "'JAVA400-L@midrange.com'" <JAVA400-L@midrange.com> cc: Subject: Listening to changes in a file 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 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.