Wednesday, August 29, 2012

Spring Framework with Hibernate JPA - ApplicationContext


Continued from Spring Framework with Hibernate JPA

Notice the property variables in the ApplicationContext.xml.
Notice the bean specifying the location of configuration.properties file whose property definitions can be used for substitution into the ApplicationContext.xml file.

ApplicationContext.xml


configuration.properties file
zzz.rambutan.driver=oracle.jdbc.driver.OracleDriver
zzz.rambutan.url=jdbc:oracle:thin:@holymoly.kacang.putty
zzz.rambutan.user=durian
zzz.rambutan.password=langsat
zzz.rambutan.hibernate.dialect=org.hibernate.dialect.OracleDialect
zzz.rambutan.hibernate.showSql=true

To be continued ....