From: "Jeremy Boynes" <[EMAIL PROTECTED]>
> With the JDBC 2.0 extension and 3.0, DataSource became available as the 
> preferred mechanism. Ideally this would be via JNDI lookup (although 
> there is no standard provider and/or location for the binding in J2SE), 
> but as an alternative configuration can now be done using standard 
> JavaBean semantics (e.g. hard coding get/set calls, serialization (.ser 
> file), XML storage, reflection in conjunction with PropertyEditors, 
> etc.) This provides much more flexibility than specialized Driver code.

I think there is already a solution for this - to use a framework such as 
Spring. DataSources can presumably be registered as beans, and injected
into client code without any need to know what the implementation looks
like.

Regards

Reply via email to