@PreDestroy not called on view scoped using CDI on JBoss EAP 7.2
Issue
ViewScoped
beans are using native @ViewScoped
annotation for CDI. However, @PreDestroy
method never runs when the page on browser is refreshed (by F5 or by click in refresh on browser). So another ViewScoped
bean is created but the later one is not 'destroyed'.
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.2.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.