站内搜索: 请输入搜索关键词
当前页面: 图书首页 > Java2 Platform Enterprise Edition Platform And Component Specifications

Java2 Platform Enterprise Edition Platform And Component Specifications

[ directory ] Previous Section Next Section

J2EE.6.10 Java™ Transaction API (JTA) 1.0 Requirements

JTA defines the UserTransaction interface that is used by applications to start and commit or abort transactions. Enterprise beans are expected to get UserTransaction objects through the EJBContext's getUserTransaction method. Other application components get a UserTransaction object through a JNDI lookup using the name java:comp/UserTransaction.

JTA also defines a number of interfaces that would be used by an application server to communicate with a transaction manager, and for a transaction manager to interact with a resource manager. JTA does not architect any method for acquiring an appropriate TransactionManager object, and this specification does not require any objects implementing that interface to be available from the J2EE platform. Similarly, a J2EE product need not support objects that implement the XAResource interface. A future version of this specification may require support for these application server APIs. Of course, support for other distributed transaction facilities may be provided by the platform, transparently to the application.

The latest JTA 1.0 specification is version 1.0.1 and is available at http://java.sun.com/products/jta.

    [ directory ] Previous Section Next Section