Hi
I am new to JEE. I am planning to to place "OrderSessionFasad" to responsible business logics related to orders (EJB 2.x or 3.x). Example (AddOrder , EditOrder , DeleteOrder) In each method I can define transaction attributes like "Required".
In hibernate tutorials I have seen that , Hibernate also managing transactions. example Session session = HibernateUtil.currentSession(); try { Transaction tx = session.beginTransaction(); Order order = new Order();
If I use only Sessionbean and Hibernate in business layer (where my presentation layer is struts2) 1. Do I need to disable Hibernate transactions as it is handle by session bean? 2. What is the recommended practice if my session bean is stateless? 3. What is the recommended practice if my session bean is statefull?
|