db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dibyendu Majumdar" <dibye...@mazumdar.demon.co.uk>
Subject Re: Unified DataSource API
Date Wed, 11 May 2005 19:01:48 GMT
From: "Jeremy Boynes" <jboynes@apache.org>
> 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


View raw message