net.wgen.op.db
Class JndiMappedConnectionFactory

java.lang.Object
  extended bynet.wgen.op.db.MappedConnectionFactory
      extended bynet.wgen.op.db.JndiMappedConnectionFactory

public class JndiMappedConnectionFactory
extends MappedConnectionFactory

Version:
$Id: JndiMappedConnectionFactory.html,v 1.2 2007/01/28 04:09:36 paulfeuer Exp $
Author:
Paul Feuer, Wireless Generation, Inc.

Field Summary
 
Fields inherited from class net.wgen.op.db.MappedConnectionFactory
 
Constructor Summary
JndiMappedConnectionFactory(TraceKey traceKey)
           
 
Method Summary
protected  java.sql.Connection acquireConnection(java.lang.String dsName)
          Create a connection by getting the DataSource from a JNDI lookup.
 
Methods inherited from class net.wgen.op.db.MappedConnectionFactory
closeOpenConnectionsQuietly, getConnection, getTraceKey, mapDataSource, setConnection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JndiMappedConnectionFactory

public JndiMappedConnectionFactory(TraceKey traceKey)
Method Detail

acquireConnection

protected java.sql.Connection acquireConnection(java.lang.String dsName)
                                         throws java.sql.SQLException
Create a connection by getting the DataSource from a JNDI lookup.

Overrides:
acquireConnection in class MappedConnectionFactory
Parameters:
dsName - the name of the datasource
Returns:
the connection as returned by the DataSource mapped to the jndi name
Throws:
java.sql.SQLException