If you are using the ThreadPoolExecuter

then simply override the :beforeExecute and afterExecute Method