User defined Listener in Java
<p>In my web app, during some change over the object, i need to send a mail about the changes happened in the object. 
My question is how to write a listener for this.
Please give me some article regarding this.
Thanks</p>
