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 ...