Thứ Hai, 24 tháng 2, 2014

Tài liệu Transaction & Security ppt


Transsaction demarcation

Programmatic Transactions

you
are responsible for issuing a
begin
statement
and either a
commit
or an
rollback
statement

BMT: do not alow for Entity bean

Declarative Transactions

Specify transaction attributes in deployment
descriptor

Container automatically handle transactional
issues

CMT

Client-Initiated Transactions

Transaction attribute

Required

RequiresNew

Supports

Mandatory

Never

NotSupported


Required

Requires New

Mandatory

Never

Bean Managed Transaction


Java Transaction API (JTA)

JTA can be used in client & bean code
to programmatically control
transactional boundaries.

The interface you use to
programmatically control transactions is
javax.transaction.UserTransaction
.

Không có nhận xét nào:

Đăng nhận xét