In Iteration 2, we moved all business logic out of the Controller Servlet into the InventoryFacadeBean (which groups our synchronous activities and wraps the DAO). We took the following steps:
Moved the business logic from the Controller Servlet's actions into the InventoryFacadeBean.
Modified the Controller Servlet to call the new methods in the InventoryFacadeBean.
Modified the HibernateCarDAO to work with CMT by removing the transaction setup and tear down code. We also removed the code that closes Hibernate Sessions.
Changed the ServiceLocator's getHibernateSession( ) method to work with CMT by calling the SessionFactory's getCurrentSession( ) method.