Thomas Dudziak wrote: >>Beauty is in the eye of the beholder. >>How is determining the JDBC URL at runtime ugly? > > > Because you have to code it ?! You cannot simply configure it which > makes using a lot of frameworks/libraries that use the database > unnecessarily difficult (think: Spring, Hibernate, OJB, ...).
Dumb question, but isn't this what the DataSource and its properties are meant to solve. The application requests a DataSource using a logical name and the J2EE container maps it to a physical name. Dan.
