LazyEnlistableConnectionManager (Java EE 5)

Java EE API


javax.resource.spi Interface LazyEnlistableConnectionManager


public interface LazyEnlistableConnectionManager


这是一个混合接口,ConnectionManager 实现可以有选择地实现。此接口的实现必须支持延时事务登记 (enlistment) 优化。
英文文档:

This is a mix-in interface that may be optionally implemented by a ConnectionManager implementation. An implementation of this interface must support the lazy transaction enlistment optimization.

Version:
1.0
Author:
Ram Jeyaraman

Method Summary
 void
 

Method Detail

public void lazyEnlist(ManagedConnection mc) throws ResourceException
此方法由资源适配器(能够进行延时事务登记优化)调用,以便使用 XA 事务延时登记连接对象。
mc 需要延时关联的 ManagedConnection 实例。
ThrowsResourceException: 一般异常。
ThrowsApplicationServerInternalException: 特定于应用服务器的异常。
ThrowsResourceAllocationException: 无法为连接请求分配系统资源。
ThrowsResourceAdapterInternalException: 与资源适配器有关的错误情况。
英文文档:

lazyEnlist

void lazyEnlist(ManagedConnection mc)
                throws ResourceException
This method is called by a resource adapter (that is capable of lazy transaction enlistment optimization) in order to lazily enlist a connection object with a XA transaction.

Parameters:
mc - The ManagedConnection instance that needs to be lazily associated.
Throws:
ResourceException - Generic exception.
ApplicationServerInternalException - Application server specific exception.
ResourceAllocationException - Failed to allocate system resources for connection request.
ResourceAdapterInternalException - Resource adapter related error condition.


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!