0 Replies Latest reply on Apr 25, 2006 4:18 PM by Arnie Morein

    HibernateContext - Deprecated - what to do?

    Arnie Morein Novice

      org.jboss.hibernate.session.HibernateContext has been deprecated in version 3.1.x of Hibernate.

      http://docs.jboss.org/jbossas/jboss4guide/r3/html/ch13.html

      is where I got the reference to this class. Is there a replacement for it? or do I just use the code:

      InitialContext ctx = new InitialContext();

      SessionFactory factory = (SessionFactory) ctx. lookup("java:/hibernate/CaveatEmptorSessionFactory");

      Session hsession = factory.openSession();