[jboss-user] [JBoss Seam] - Re: Spring-injected ManagedHibernateSession

berserksangr do-not-reply at jboss.com
Fri Nov 17 10:53:53 EST 2006


Can this be achieved by the following?

1. Configure DataSource and Hibernate session factory using Spring
2. Bind this session factory to JNDI under java:/sessionFactory
3. Spawn HibernateManagedSession in components.xml and set sessionFactoryJndiName to java:/bookingSessionFactory
4. When DAO method is invoked, get HibernateSession using Seam's Contexts.lookupInStatefulContexts(HibernateManagedSession_COMPONENT_NAME).

TIA



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3986865#3986865

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3986865



More information about the jboss-user mailing list