Originally posted by Malli Raman:
I got the answer from my friend saying that if you are using session bean with DAO then the transaction will be taken care by the container. So for any exception the container will rollback the transaction.
If the business logic is implemented by means servlets and normal POJO's then the developer will write the code for the transactions by using the JTS transactions api.
Use a Data Access Object (DAO) to abstract and encapsulate all access to the data source. The DAO manages the connection with the data source to obtain and store data.
Originally posted by Stan James:
JSP ---> servlet ---> SessionBean --> POJO --> DAO --> Database