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?
Sorry ,I didnt get my answer.Since I have never worked with weblogic,I am not sure how the values defined in database.properties file are set.
I am looking at an spring + hibernate application in weblogic developed by someone else and have no idea as to how the values in database.properties file are set.