Hi Fernando,
On 12 Feb 2008, at 15:21, Fernando wrote:
> I've found this:
>
> import org.hibernate.Session
> import org.hibernate.SessionFactory
> import org.springframework.orm.hibernate3.SessionFactoryUtils
> import org.springframework.orm.hibernate3.SessionHolder
> import
> org
> .springframework.transaction.support.TransactionSynchronizationManager
> sessionFactory = ctx.getBean("sessionFactory")
> session = SessionFactoryUtils.getSession(sessionFactory, true)
> TransactionSynchronizationManager.bindResource(sessionFactory, new
> SessionHolder(session))
>
> I've tried to load some collections on shell and worked.
>
> Try it see if it works w/ you.
Yes, it seems to work fine here too. Thanks for the info.
Jon
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email