Write a Sling or JCR event listener for the events you are looking to capture.
The listener class will be called every time the relevant events are fired. Within the class you can write the events to some node and keep pinging the node from your standalone java app at regular intervals to see the captured events. Or else you can call a servlet hosted in your standalone app from the event listener every time the event occurs.