Name

DataSourceFactory

Synopsis

This class is a generic JNDI object factory intended for producing DataSource instances using custom DataSource implementations, such as those often bundled with a JDBC driver. It can be used with Tomcat 4, and likely with other web containers that supports JNDI, such as Resin and JRun.

Synopsis

Class Name:

com.ora.jsp.sql.DataSourceFactory

Extends:

None

Implements:

javax.naming.spi.ObjectFactory

Methods

public Object getObjectInstance(Object obj, javax.naming.Name name,

javax.naming.Context, java.util.Hashtable environment)

throws javax.naming.NamingException

Returns a DataSource, created as an instance of the class specified by the dataSourceClassName parameter accessible through the javax.naming.Reference instance passed as the obj argument, configured by calling all setter methods matching other parameters passed through the Reference instance.

Get JavaServer Pages, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.