Hi,
We are using spring 3.x along with hibernate 3.x and facing very critical memory leak issue from cglib and because of which classes are not getting cleared up from memory after redeploy. I tried all possible options to remove cglib dependency from hibenrate and finally upgraded to hibernate 3.3.2 which uses javassist as proxy lib. But, how to eliminate the dependency of cglib from spring.

Where ever there is interface driven classes are there, I think spring will use Java JDK proxies, but for direct classes it uses cglib.
We are using org.springframework.orm.hibernate3.annotation.Anno tationSessionFactoryBean to integrate with hibernate. I think it's not driven through interface and because of it's using cglib. How can I solve the problem.
public class DAOHibernate<T, ID extends Serializable> implements
IGenericDAO<T, ID> {

@Autowired
private SessionFactory sessionFactory;

}


Please suggest on how to solve the problem.

Thanks
Santhosh