org.jencks.factory
Class ConnectionManagerFactoryBean

java.lang.Object
  extended byorg.jencks.factory.ConnectionManagerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

public class ConnectionManagerFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.InitializingBean

This FactoryBean creates a local JCA connection factory outside a J2EE application server.

The connection manager will be then injected in the LocalConnectionFactoryBean, class of the JCA support of Spring.

Author:
Thierry Templier
See Also:
org.springframework.jca.support.LocalConnectionFactoryBean#setConnectionManager(ConnectionManager), NoTransactionFactoryBean, LocalTransactionFactoryBean, XATransactionFactoryBean, PartitionedPoolFactoryBean, SinglePoolFactoryBean

Constructor Summary
ConnectionManagerFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
          This method checks all the needed parameters to construct the Geronimo connection manager which is implemented by the GenericConnectionManager class.
 Object getObject()
           
 Class getObjectType()
           
 boolean isSingleton()
           
 void setConnectionTracker(org.apache.geronimo.connector.outbound.connectiontracking.ConnectionTracker tracker)
          Set the connection tracker for the Geronimo Connection Manager.
 void setPoolingSupport(org.apache.geronimo.connector.outbound.connectionmanagerconfig.PoolingSupport support)
          Set the pooling support for the Geronimo Connection Manager.
 void setRealmBridge(org.apache.geronimo.security.bridge.RealmBridge bridge)
          Set the realm bridge for the Geronimo Connection Manager.
 void setTransactionContextManager(org.apache.geronimo.transaction.context.TransactionContextManager manager)
          Set the transaction context manager for the Geronimo Connection Manager.
 void setTransactionSupport(org.apache.geronimo.connector.outbound.connectionmanagerconfig.TransactionSupport support)
          Set the transaction support for the Geronimo Connection Manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionManagerFactoryBean

public ConnectionManagerFactoryBean()
Method Detail

getObject

public Object getObject()
                 throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean
Throws:
Exception

getObjectType

public Class getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean

setPoolingSupport

public void setPoolingSupport(org.apache.geronimo.connector.outbound.connectionmanagerconfig.PoolingSupport support)
Set the pooling support for the Geronimo Connection Manager. Geronimo provides two kinds of pool: single and partitioned.

See Also:
SinglePool, PartitionedPool

setRealmBridge

public void setRealmBridge(org.apache.geronimo.security.bridge.RealmBridge bridge)
Set the realm bridge for the Geronimo Connection Manager. This mechnism allows the application to map the application subject with the subject used by the EIS.


setTransactionContextManager

public void setTransactionContextManager(org.apache.geronimo.transaction.context.TransactionContextManager manager)
Set the transaction context manager for the Geronimo Connection Manager.


setTransactionSupport

public void setTransactionSupport(org.apache.geronimo.connector.outbound.connectionmanagerconfig.TransactionSupport support)
Set the transaction support for the Geronimo Connection Manager. Geronimo provides in this case three kinds of support like the JCA specification: no transaction, local transactions, XA transactions.

See Also:
NoTransactions, LocalTransactions, XATransactions

setConnectionTracker

public void setConnectionTracker(org.apache.geronimo.connector.outbound.connectiontracking.ConnectionTracker tracker)
Set the connection tracker for the Geronimo Connection Manager.


afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
This method checks all the needed parameters to construct the Geronimo connection manager which is implemented by the GenericConnectionManager class. If the transaction support property is not set, the method configures the connection manager with the no transaction value. If the pooling support property is not set, the method configures the connection manager with the no pool value. If the realm bridge is not set, the method configure the connection manager with an identity realm bridge.

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception
See Also:
GenericConnectionManager


Copyright © 2005 LogicBlaze, Inc.. All Rights Reserved.