Class DalThreadHandler


  • public abstract class DalThreadHandler
    extends ThreadHandler
    Encapsulates a thread so that when the thread returns the session/transaction is closed/committed/rolledback. It also ensures that the OBContext is removed from the thread. Note that cleaning up the thread is particularly important in webcontainer environments because webcontainers (tomcat) re-use thread instances for new requests (using a threadpool).
    Author:
    mtaal