ManagedConnectionMetaData (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.resource.spi Interface ManagedConnectionMetaData


public interface ManagedConnectionMetaData

The ManagedConnectionMetaData interface provides information about the underlying EIS instance associated with a ManagedConnection instance. An application server uses this information to get runtime information about a connected EIS instance.

The method ManagedConnection.getMetaData returns a ManagedConnectionMetaData instance.

版本:
0.8
作者:
Rahul Sharma
另请参见:
ManagedConnection

方法摘要
 String getEISProductName()
          Returns Product name of the underlying EIS instance connected through the ManagedConnection.
 String getEISProductVersion()
          Returns product version of the underlying EIS instance connected through the ManagedConnection.
 int getMaxConnections()
          Returns maximum limit on number of active concurrent connections that an EIS instance can support across client processes.
 String getUserName()
          Returns name of the user associated with the ManagedConnection instance.
 

方法详细信息

getEISProductName

String getEISProductName()
                         throws ResourceException
Returns Product name of the underlying EIS instance connected through the ManagedConnection.

返回:
Product name of the EIS instance.
抛出异常:
ResourceException

getEISProductVersion

String getEISProductVersion()
                            throws ResourceException
Returns product version of the underlying EIS instance connected through the ManagedConnection.

返回:
Product version of the EIS instance
抛出异常:
ResourceException

getMaxConnections

int getMaxConnections()
                      throws ResourceException
Returns maximum limit on number of active concurrent connections that an EIS instance can support across client processes. If an EIS instance does not know about (or does not have) any such limit, it returns a 0.

返回:
Maximum limit for number of active concurrent connections
抛出异常:
ResourceException

getUserName

String getUserName()
                   throws ResourceException
Returns name of the user associated with the ManagedConnection instance. The name corresponds to the resource principal under whose whose security context, a connection to the EIS instance has been established.

返回:
name of the user
抛出异常:
ResourceException

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.