Changeset 269


Ignore:
Timestamp:
11/29/10 17:00:31 (3 years ago)
Author:
philsmart
Message:
 
Location:
UA/trunk/src/main
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • UA/trunk/src/main/java/uk/ac/cardiff/RaptorUA/dao/UADataConnectionImpl.java

    r265 r269  
    6565    @Override 
    6666    public void saveAll(Collection collection) { 
    67         //log.debug("Saving..."+entry); 
     67        //log.debug("Saving..."); 
    6868        hibernateTemplate.saveOrUpdateAll(collection); 
    6969        //hibernateTemplate.flush(); 
  • UA/trunk/src/main/java/uk/ac/cardiff/RaptorUA/model/PersistantEntryHandler.java

    r265 r269  
    5353 
    5454        List<Entry> entriesAsList = dataConnection.runQuery("from Entry", null); 
     55        log.info("UA has loaded "+entriesAsList.size()+" entries from DB backed cache"); 
    5556        entries = new LinkedHashSet<Entry>(entriesAsList); 
    5657    } 
     
    8485    @Override 
    8586    public void endTransaction() { 
     87        log.debug("Saving transaction for UA"); 
    8688        dataConnection.saveAll(entries); 
     89        log.debug("Saving transaction for UA...Done"); 
    8790 
    8891    } 
  • UA/trunk/src/main/java/uk/ac/cardiff/RaptorUA/service/impl/UAProcessImpl.java

    r265 r269  
    8585            if (lockR.tryLock(getTimeout, TimeUnit.MILLISECONDS)) { 
    8686                try { 
     87                    log.debug("Retreiving all authentications form UA"); 
    8788                    authentications = aggregatorEngine.getAllAuthentications(); 
     89                    log.debug("Retreiving all authentications form UA...done"); 
    8890                } finally { 
    8991                    lockR.unlock(); 
  • UA/trunk/src/main/webapp/WEB-INF/beans.xml

    r265 r269  
    129129                                <prop key="hibernate.dialect"> org.hibernate.dialect.PostgreSQLDialect</prop> <!-- database type --> 
    130130                                <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 these 
     131                          <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 
    132132--> 
    133133                                <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.