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: |
|
Extends: |
None |
Implements: |
|
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 thedataSourceClassName
parameter accessible through thejavax.naming.Reference
instance passed as theobj
argument, configured by calling all setter methods matching other parameters passed through theReference
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.