beginTransaction
run function
if(error) rollback;
endTransaction
We have ejb to simplify the transaction code:
- ejb has session bean, to simplify the transaction codes, can do declare service
- But cannot run in Tomcat
- ejb can run in jboss and weblogic
- ejb is not POJO
Why Spring
- Lite weight
- Can run in Tomcat
- Spring can take over the function of ejb's session bean, declare service
- Spring can replace part functions of ejb
No comments:
Post a Comment