This content has been marked as final. Show 3 replies
I'd put the values into the database.properties file, and put a PropertyPlaceholderConfigurer in your app context to point to it. How many layers of indirection do you need?
If you're using WebLogic 9, I'd strongly urge you to NOT create the data source this way. Better to use a JNDI lookup data source and configure the database connection parameters in the WebLogic console. You want the JndiDataSourceLookup in that case.
Why the Apache Commons BasicDataSource instead of the Spring DriverManagerDataSource?