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

4 comments:

  1. It is really a great and helpful piece of information. I glad that you shared this useful info with us. Please keep us up to date like this. Thank you for sharing.
    starfall | barney | abcya | minecraft games

    ReplyDelete