Question - How do I use Hibernate in an EJB 2.1 session bean? 
          
        
        Answer - 
        1. Look up the SessionFactory in JNDI. 
2. Call getCurrentSession() to get a Session for the current transaction.
3. Do your work.
4. Don't commit or close anything, let the container manage the transaction.