Hi,
I am using spring 3 and hibernate for my application framework and
JBoss as application server. I am calling a method inside DAO through an externalized MBean.
and get the following error:
org.hibernate.HibernateException: No Hibernate Session bound to
thread, and configuration does not allow creation of non-transactional one here
Here is my DAO class. I have observed that it gives the error on Session session = sessionFactory.getCurrentSession();
It extends MercerChatDAO, the code for which is as follows:
and here is the configuration for hibernate:
Please guide me how to go about the solution.