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.
kktec<br />SCJP, SCWCD, SCJD<br />"What we observe is not nature itself, but nature exposed to our method of questioning." - Werner Heisenberg
kktec<br />SCJP, SCWCD, SCJD<br />"What we observe is not nature itself, but nature exposed to our method of questioning." - Werner Heisenberg
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Originally posted by Stan James:
JSP ---> servlet ---> SessionBean --> POJO --> DAO --> Database
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
|