org.jcoderz.commons.connector
Class DefaultConnectionManager

java.lang.Object
  extended by org.jcoderz.commons.connector.DefaultConnectionManager
All Implemented Interfaces:
Serializable, ConnectionManager

public class DefaultConnectionManager
extends Object
implements ConnectionManager

The default Connection Manager. This Manager is intended to be used in a two tier scenario (Non-managed Environment, see Connection Architecture 1.0 Chapter 5.9).

See Also:
Serialized Form

Constructor Summary
DefaultConnectionManager()
           
 
Method Summary
 Object allocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo cri)
          Creates a new physical connection to the underlying EIS instance.
 void cleanUp()
          Cleans up all managed connections.
 void destroy()
          Destroys all managed connections.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConnectionManager

public DefaultConnectionManager()
Method Detail

allocateConnection

public Object allocateConnection(ManagedConnectionFactory mcf,
                                 ConnectionRequestInfo cri)
                          throws ResourceException
Creates a new physical connection to the underlying EIS instance.

Specified by:
allocateConnection in interface ConnectionManager
Throws:
ResourceException
See Also:
ConnectionManager.allocateConnection(javax.resource.spi.ManagedConnectionFactory, javax.resource.spi.ConnectionRequestInfo)

cleanUp

public void cleanUp()
Cleans up all managed connections.


destroy

public void destroy()
Destroys all managed connections.



Copyright 2007 The jCoderZ Project.