*
The moose likes Spring and the fly likes HibernateDaoSupport and Transaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "HibernateDaoSupport and Transaction" Watch "HibernateDaoSupport and Transaction" New topic
Author

HibernateDaoSupport and Transaction

gokmen kisakol
Greenhorn

Joined: Aug 26, 2011
Posts: 5
First of all I must say I am new in Spring. I try to a web application with spring+hibernate.
I have some classes

1.
@ManagedBean
@RequestScoped
public class UserBean {} calling service
2.
public class UserBO implements IUserBO{} calling UserDAO and will apply transaction in this class
3.
public class UserDAO extends HibernateDaoSupport implements IUserDAO {}



In this configuration, I want to use transaction in UserBO that is defined in applicationContext.xml., but I didnt do it.

Can you give me a sample how I can configure thr applicationContext.xml.

This is my applicationContext.xml but not working transaction on UserBO methods.



Function is;






 
Don't get me started about those stupid light bulbs.
 
subject: HibernateDaoSupport and Transaction
 
Similar Threads
Dependency injection problem
Spring And Hibernate (LocalSessionFactoryBean)
@Transactional Annotation
I am getting org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity:
login form with database and spring security