java - Why does JTA have a Transaction and a UserTransaction interfaces to represent transaction? -
the jta api defines 2 interfaces
- transaction http://docs.oracle.com/javaee/6/api/javax/transaction/transaction.html
- usertransaction http://docs.oracle.com/javaee/6/api/javax/transaction/usertransaction.html
the classes have methods have same name , appear have same semantics, @ least reading javadoc.
why jta needs define 2 interfaces represent transaction?
Comments
Post a Comment