"David W. Van Couvering" <[EMAIL PROTECTED]> writes:

> How do the instances of these get created?  It looks like the data
> sources are generally registered with JNDI using
> getObjectInstance(). But do we allow users to create new instances
> directly (e.g. "new ClientDataSource()")?  I noticed the constructor
> was public...
>
> It looks like Driver creates a new instance of itself when the class
> is loaded.  Do I have that right?

Yes, but...

> But again, we don't support someone
> saying "new ClientDriver()" directly, right?  Again, I noticed that
> this is currently a public method.

I think the constructor has to be public since
Class.forName("org.apache...").newInstance() is the recommended way to
load the Derby driver. Read this discussion for details:
http://www.mail-archive.com/[email protected]/msg01645.html

-- 
Knut Anders

Reply via email to