Managed beans with custom ViewScope

怎甘沉沦 提交于 2019-12-06 16:49:35
Michail Nikolaev

Problem is incorrect implementaiton of view scope. It is creates Spring bean objectFactory.getObject(); but never destroy it.

To solve it - check correct implementation with support for registerDestructionCallback.

BWT, current Mojjara implementation will not call @PreDestory on your bean too. But it will free bean instance at least.

Sathish Kumar

I tried the work around for Jsf view scope bean memory leaks using spring custom view scope. It works for both Jsf 2.1 & 2.2.Try the code in below link. Memory leak with ViewScoped bean?

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!