Notification after document insertion, deletion and modification

hi all,

i need to develop a program that gets notification (and as parameter the uid) from notes, respectively nos after a document in the database has been pasted, modified or deleted.

what would be better: agent or application?

should i use the java, c or c++ api?

i’m working with notes/domino 6.0.3 under windows XP.

many thanks, chris