简体   繁体   中英

Oracle polling from Java

I am writing a Spring application where I need to trigger an external job and wait till the job finishes (which updates a field in an Oracle table) - I am thinking of polling the table till its updated. Could anyone suggest a method of doing that in Java? Thanks

Shell script

Create a shell script, run for external job in a separate thread,let it return a proper exit code, based on the exit code received from shell, execute your dependent process

Messaging

Let the external job to notify once it's done, on receiving the trigger/event you can start the other process waiting for this to be done.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM