jta

  • 网络事务(Java Transaction API);分布式事务;日本观光厅(Japan Tourism Agency)

jtajta

jta

事务(Java Transaction API)

Java事务的类型有三种:JDBC事务、JTA(Java Transaction API)事务、容器事务。 javax.naming 2011-12-20 17:27:12 阅读51…

分布式事务

目前,WebSphere Application Server 和其它 J2EE 服务器不支持 IBM Type 3 驱动程序,因为该驱动程序不支持分布式事务J

日本观光厅(Japan Tourism Agency)

根据日本观光厅JTA)3月8日更新的数据,2011年的第四季度(10-12月),中国大陆游客位居在日住宿游客总数的榜首。而 …

1
Transactions are provided as part of a JTA binding, which allows transactions to be acquired from an OSGi service. 事务已经作为JTA绑定的一部分,这样就可以从OSGi服务中获取事务了。
2
This does not mean that application-managed entity managers cannot be configured as JTA entity managers. 这并不意味着不能将应用程序管理的实体管理器配置为JTA实体管理器。
3
The JDBC approach is attractive due to its simplicity; the JTA approach offers greater flexibility. JDBC方式由于其简单性而具有吸引力,JTA方式提供了更大的灵活性。
4
Typically, the only parts that needs changing are the JNDI references for the JTA and non-JTA datasources. 通常需要更改的惟一部分是对JTA和非JTA数据源的JNDI引用。
5
A typical configuration is a container environment for a JTA transaction with three JNDI-registered data sources. 一个具有3个JNDI注册的数据资源的JTA事务的容器环境是一种典型的配置。
6
A driver that implements these interfaces will be able to participate in JTA transactions. 一个实现了这些接口的驱动程序将可以参与JTA事务。
7
This article only requires you to have a basic understanding of the JTA. 本文仅仅需要您对JTA有一个基本的了解。
8
Transaction Management: The new JTA support enables the cache to participate as an XA resource in JTA transactions. 事务管理:新的JTA支持特性允许缓存在JTA事务中以XA资源的形式存在。
9
JDBC transaction demarcation is simpler than JTA transaction demarcation, but JTA provides greater flexibility. JDBC事务界定比JTA事务界定要简单,但是JTA提供了更多的灵活性。
10
There is a set of methods in JTA which "packages" your traditional JDBC calls into the Two-Phase-Commit protocol. JTA中有一组方法,它将传统的JDBC调用封装到了两阶段提交(Two-Phase-Commit)协议中。
11
Use local transactions if you don't need to use JTA because JTA requires many more resources and is much slower than local transactions. 如果不需要JTA就用本地事务,因为JTA需要更多资源,比本地事务更慢。
12
Always remember that XA connections are participating in a JTA transaction. 一定要记住XA连接参与了JTA事务。
13
Updates to the cache and the database are wrapped in the same JTA transaction so that the cache and database are always synchronized. 对缓存和数据库的更新被包装在同一个JTA事务中,这样缓存与数据库总是保持同步的。
14
To demarcate a transaction with JTA, the application invokes methods on the javax. transaction. UserTransaction interface. 要用JTA进行事务界定,应用程序要调用javax.transaction.UserTransaction接口中的方法。
15
Updates database in a JTA transaction; updates cache in the same transaction. 在一个JTA事务中更新数据库;在同一个事务中更新缓存。
16
Other services and technologies that may be found in a J2EE Server bundle include EJBs, Connectors, JMS, JTA, etc. J2EE服务器中可能出现的其他服务和技术有EJB、连接器、JMS、JTA等。
17
However, as stated, the application-managed entity manager can still be configured using JTA. 然而,按照规定,仍然可以使用JTA来配置应用程序管理的实体管理器。
18
We illustrate local transactions with JPA using the SAMPLE database, but we use both the databases for illustrating JTA transactions. 我们将使用SAMPLE数据库演示利用JPA的本地事务,但还会将这两个数据库用于演示JTA事务。
19
The servlet demonstrates how to combine the JTA-aware MovieDAO and the Java Message Service in a single transaction, as shown in Listing 8. 这个servlet展示了如何将支持JTA的MovieDAO和Java消息服务(JavaMessageService)结合到一个事务中,如清单8所示。
20
The following example ( Listing 3) demonstrates a small application that implements the Two-Phase-Commit protocol using JTA. 下面的例子(清单3)演示了一个小型应用程序,该应用程序使用JTA实现两阶段提交(Two-Phase-Commit)协议。
21
The above logic makes the act of processing a message a logical participant in the JTA transaction. 上面的逻辑将消息处理这个操作作为这个JTA事务的一个逻辑参与者。
22
If a JTA manager is required, a simple yet elegant solution is to use the jca connector from Jackrabbit contrib package. 如果要求一个JTA管理器,一个简单而优雅的解决办法是使用来自Jackrabbit捐献包的jca连接器。
23
The JTA is a well-defined transaction service that provides J2EE application developers with a service they can use directly. JTA是一个定义明确的事务服务,向J2EE应用程序开发人员提供一种可以直接使用的服务。
24
Next, we'll see how transaction demarcation is done using JTA. 在下面,我们将看一下如何用JTA进行事务界定。
25
The example in this article demonstrated you how to use JTA to realize the Two-Phase-Commit protocol in Java. 本文中的例子演示了如何在Java中使用JTA实现两阶段提交(Two-Phase-Commit)协议。
26
First of all, you need the right JDK when programming JTA applications. 首先,在编写JTA应用程序时,您需要合适的JDK。
27
Even when you have more than one datasource, you don't need JTA unless you have transactions spanning more than one datasource. 就算你有多个数据源,除非有跨多个数据库的事务,否则也不需要JTA。
28
The Java application that contains SQL and JTA calls. 包含SQL和JTA调用的Java应用程序。
29
The classes imported in line 30-33 are necessary to work with JTA. 第30-33行中导入的类是使用JTA所必要的。
30
The method implementation uses the JTA API to start local transactions that control access to EIS1 and EIS2. 该方法用JTAAPI启动控制EIS1和EIS2的访问的本地事务。