Hello,
In Hibernate3 I think that you should use SessionFactory.getCurrentSession()
instead of HibernateContext. I think that will do the same thing in application
server independent way.
But the problem that I see here is that neither of these will work if you are
not inside a transaction.
Any examples. Can someone provide any class similar to HibernateUtil?
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3878692#3878692
Reply to the post :
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3878692
Link to bug report got truncated, here's the actual link:
http://jira.jboss.com/jira/browse/JBAS-1828
Sorry about that
View the original post :
http://www.jboss.org/index.html?module=bbop=viewtopicp=3878566#3878566
Reply to the post :
I've been playing with it today, and the best solution seems to be to not use
HibernateUtil. The reason it was created was to solve many of the problems that
are taken care of by org.jboss.hibernate.session.HibernateContext. Usage of
HibernateContext results in less code. The same amount in the