Need Help: Managing Hibernate Session at EJB layer
This is my architecture:
@Stateless EJB 3 Services --> Business Services (Spring) --> DAO via HibernateDaoSupport (Spring)
I am using CMT in an application server. I need the Hibernate session available to me in EJB layer for lazy loading/object conversion; unfortunately it only opens/closes at my Business Service layer because that's the boundaries of Spring's transactional support.
How can I push Spring's transactional support to the EJB 3 layer? I am looking to automatically open and close the Hibernate session there? This has been a problem plaguing me for months; haven't found any solution.