SeeAlso:
“Transactionsin Java EE Technology” on page 144
“ConguringTransactions” on page 145
Transactionsin Java EE Technology
Transactionprocessing involves the following ve participants:
TransactionManager
EnterpriseServer
ResourceManager(s)
ResourceAdapter(s)
UserApplication.
Eachof these entities contribute to reliable transaction processing by implementing the
dierentAPIs and functionalities, discussed below:
TheTransaction Manager provides the services and management functions required to
supporttransaction demarcation, transactional resource management, synchronization,
andtransaction context propagation.
TheEnterprise Server provides the infrastructure required to support the application
runtimeenvironment that includes transaction state management.
TheResource Manager (through a resource adapter) provides the application access to
resources.The resource manager participates in distributed transactions by implementing a
transactionresource interface used by the transaction manager to communicate transaction
association,transaction completion and recovery work. An example of such a resource
manageris a relational database server.
AResource Adapter is a system level software library that is used by the application server or
clientto connect to a Resource Manager. A Resource Adapter is typically specic to a
ResourceManager. It is available as a library and is used within the address space of the
clientusing it. An example of such a resource adapter is a JDBC driver.
ATransactional User Application developed to operate in an application server
environmentlooks up transactional data sources and, optionally, the transaction manager,
usingJNDI. The application may use declarative transaction attribute settings for enterprise
beansor explicit programmatic transaction demarcation.
SeeAlso:
“Whatis a Transaction?” on page 143
“ConguringTransactions” on page 145
AboutTransactions
SunGlassFishEnterprise Ser ver2.1 Administration Guide • December 2008144