
full-hibernate-plugin-for-struts2 - issue #39
close session method not found when using Custom Hibernate Session Factory
What steps will reproduce the problem? 1. Configured property closeSessionMethod as "closeSession" struts.properties and customSessionFactoryClass as "org.something.MySessionFactory" 2. Then creating the method closeSession with argument type org.hibernate.Session 3. Then it throws NoSuchMethodException for closeSession
What is the expected output? What do you see instead? It should work and the method should be called. But instead it throws NoSuchMethodException, closeSession method is not found.
What version of the product are you using? On what operating system? As per the plugin requirements and Windows XP
Please provide any additional information below. When changing the signature of closeSession method to org.hibernate.internal.SessionImpl rather than org.hibernate.Session, it starts working. But the should not be dependent on the Concrete implementation.
Status: New
Labels:
Type-Defect
Priority-Medium