Changeset 269
- Timestamp:
- 11/29/10 17:00:31 (3 years ago)
- Location:
- UA/trunk/src/main
- Files:
-
- 4 edited
-
java/uk/ac/cardiff/RaptorUA/dao/UADataConnectionImpl.java (modified) (1 diff)
-
java/uk/ac/cardiff/RaptorUA/model/PersistantEntryHandler.java (modified) (2 diffs)
-
java/uk/ac/cardiff/RaptorUA/service/impl/UAProcessImpl.java (modified) (1 diff)
-
webapp/WEB-INF/beans.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
UA/trunk/src/main/java/uk/ac/cardiff/RaptorUA/dao/UADataConnectionImpl.java
r265 r269 65 65 @Override 66 66 public void saveAll(Collection collection) { 67 //log.debug("Saving..." +entry);67 //log.debug("Saving..."); 68 68 hibernateTemplate.saveOrUpdateAll(collection); 69 69 //hibernateTemplate.flush(); -
UA/trunk/src/main/java/uk/ac/cardiff/RaptorUA/model/PersistantEntryHandler.java
r265 r269 53 53 54 54 List<Entry> entriesAsList = dataConnection.runQuery("from Entry", null); 55 log.info("UA has loaded "+entriesAsList.size()+" entries from DB backed cache"); 55 56 entries = new LinkedHashSet<Entry>(entriesAsList); 56 57 } … … 84 85 @Override 85 86 public void endTransaction() { 87 log.debug("Saving transaction for UA"); 86 88 dataConnection.saveAll(entries); 89 log.debug("Saving transaction for UA...Done"); 87 90 88 91 } -
UA/trunk/src/main/java/uk/ac/cardiff/RaptorUA/service/impl/UAProcessImpl.java
r265 r269 85 85 if (lockR.tryLock(getTimeout, TimeUnit.MILLISECONDS)) { 86 86 try { 87 log.debug("Retreiving all authentications form UA"); 87 88 authentications = aggregatorEngine.getAllAuthentications(); 89 log.debug("Retreiving all authentications form UA...done"); 88 90 } finally { 89 91 lockR.unlock(); -
UA/trunk/src/main/webapp/WEB-INF/beans.xml
r265 r269 129 129 <prop key="hibernate.dialect"> org.hibernate.dialect.PostgreSQLDialect</prop> <!-- database type --> 130 130 <prop key="hibernate.show_sql">false</prop> <!-- outputs the SQL queries used to the standard logger --> 131 <prop key="hibernate.hbm2ddl.auto"> create</prop> <!-- update changes the db if mapping changes, creates the db if none exists, in production do not use any of these131 <prop key="hibernate.hbm2ddl.auto">update</prop> <!-- update changes the db if mapping changes, creates the db if none exists, in production do not use any of these 132 132 --> 133 133 <prop key="hibernate.c3p0.minPoolSize">5</prop> <!-- IMPORTANT this then uses the c3po pooling which is better than hibs implementation for production systems
Note: See TracChangeset
for help on using the changeset viewer.
