站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 3.2.7 connector API Documentation 英文版文档

ConnectionListenerFactory (JBoss Connector API) - JBoss 3.2.7 connector API Documentation 英文版文档


org.jboss.resource.connectionmanager
Interface ConnectionListenerFactory

All Known Implementing Classes:
BaseConnectionManager2

public interface ConnectionListenerFactory

A factory for connection event listeners

Version:
$Revision: 1.1.2.3 $
Author:
Adrian Brock

Method Summary
 ConnectionListener createConnectionListener(javax.resource.spi.ManagedConnection mc, Object context)
          Create a managed connection listener for the managed connection
 TransactionManager getTransactionManagerInstance()
          Get the transaction manager
 boolean isTransactional()
          Determine whether is a transaction
 

Method Detail

createConnectionListener

public ConnectionListener createConnectionListener(javax.resource.spi.ManagedConnection mc,
                                                   Object context)
                                            throws javax.resource.ResourceException
Create a managed connection listener for the managed connection

Parameters:
mc - the managed connection
context - a context object used by the pool
Returns:
a new connection event listener
Throws:
javax.resource.ResourceException - for any error

isTransactional

public boolean isTransactional()
Determine whether is a transaction

Returns:
whether there is a transaction

getTransactionManagerInstance

public TransactionManager getTransactionManagerInstance()
Get the transaction manager

Returns:
the transaction manager


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.