I would like to trigger processes when certain functionality is executed in a
JEE or
Java application. I know about
servlet filters and I use them when specific Servlets are called. But what about POJO's?
Here are some examples of what I would like to do:
When a DAO is about to be called, a process to trace parameters going into a stored procedure executes.
An exception occurs and is pushed to the stack, a process detects this and logs the error.
A global variable is changed by a side door process. Another process detects this and does some re initialization.