Question :The EJB specification says that we cannot use Bean Managed Transaction
in Entity Beans. Why? (EJB)
Answer :The short, practical answer is... because it makes your entity beans
useless as a reusable component. Also, transaction management is best
left to the application server - that's what they're there for. It's all about
atomic operations on your data. If an operation updates more than one
entity then you want the whole thing to succeed or the whole thing to fail,
nothing in between. If you put commits in the entity beans then it's very
difficult to rollback if an error occurs at some point late in the operation.
www.interviewhelper.org is a hope for all the Job seekers. Users can find unlimited here. These range from technical to HR, from functional to behavioral. www.interviewhelper.org contains in the fields like Ajax,VB,Networking,Sharepoint,JEE,Perl,Javascript,Bioinformatics,Classic ASP,Unix,Linux,Accounting,Oracle DBA,Microprocessor,Bluetooth,jms,jme,.net framework,ABAP,ASP,ASP.net,Basic .net Framework,Interview Questions,C language,C++,database,Oracle,Java,PHP,LAMP,SAP etc.
Friday, March 13, 2009
The EJB specification says that we cannot use Bean Managed Transaction
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment