biz.hammurapi.jms.adapter.jca
Class ConnectionFactoryImpl

java.lang.Object
  extended by biz.hammurapi.jms.adapter.jca.ConnectionFactoryImpl
All Implemented Interfaces:
ConnectionFactory

public class ConnectionFactoryImpl
extends java.lang.Object
implements ConnectionFactory

Author:
Pavel Vlasov

Constructor Summary
ConnectionFactoryImpl(ManagedConnectionFactoryImpl managedConnectionFactory, javax.resource.spi.ConnectionManager connectionManager)
          Constructor
 
Method Summary
 Connection getConnection(boolean stateful)
          Stateful connection caches proxy instances and as such retains conversational state if proxy services use local delegates.
 Connection getConnection(java.lang.Object state)
          Creates stateful connection with pre-set state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionFactoryImpl

public ConnectionFactoryImpl(ManagedConnectionFactoryImpl managedConnectionFactory,
                             javax.resource.spi.ConnectionManager connectionManager)
Constructor

Method Detail

getConnection

public Connection getConnection(boolean stateful)
                         throws javax.resource.ResourceException
Description copied from interface: ConnectionFactory
Stateful connection caches proxy instances and as such retains conversational state if proxy services use local delegates.

Specified by:
getConnection in interface ConnectionFactory
Returns:
Throws:
javax.resource.ResourceException

getConnection

public Connection getConnection(java.lang.Object state)
                         throws javax.resource.ResourceException
Description copied from interface: ConnectionFactory
Creates stateful connection with pre-set state.

Specified by:
getConnection in interface ConnectionFactory
Parameters:
state - State obtained from previously used connection.
Returns:
Throws:
javax.resource.ResourceException


Copyright © 2006 Hammurapi Group. All Rights Reserved.