Hi, guys.
I'm trying to test my workin' with spring 2.0.5 code with spring 2.5.
applicationContext.xml contains
and my class containsCode:<tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true"/>
and i see a message "No CurrentSessionContext configured!" in logs. Whats goin' on? How can i correct it?Code:@Transactional(readOnly = false, propagation = Propagation.REQUIRED) public List getAllData() { try { String queryString = "from Data"; Query queryObject = this.sessionFactory.getCurrentSession() .createQuery(queryString); return queryObject.list(); } catch (RuntimeException re) { logger.debug("getting all data failed"); logger.debug(re.getMessage()); } return null; }


Reply With Quote