Section 6.17. Reviewing Iteration 2

6.17. Reviewing Iteration 2

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.

JBoss at Work. A Practical Guide
JBoss at Work: A Practical Guide
ISBN: 0596007345
EAN: 2147483647
Year: 2004
Pages: 197

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: