@PreDestroy not called on view scoped using CDI on JBoss EAP 7.2

Solution In Progress - Updated -


ViewScopedbeans 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'.


  • 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.

Current Customers and Partners

Log in for full access

Log In