detecting when a record is saved

You could put a timestamp on each record and then do a polling loop
looking for records newer than the last record you found previously.
That would detect the new records inserted by Java.

Michael

i misread the OP. sorry about that.