[ https://issues.apache.org/jira/browse/ISIS-1756?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16220190#comment-16220190 ]
Andi Huber commented on ISIS-1756: ---------------------------------- Introduces a new javax.servlet.Filter that extends on org.apache.wicket.protocol.http.WicketFilter, which must be configured with web.xml. {code:java} @Log public class DomainAppFilter extends WicketFilter { @Override public void init(boolean isServlet, FilterConfig filterConfig) throws ServletException { log.info("DomainAppFilter on init ..."); super.init(isServlet, filterConfig); } @Override public void destroy() { log.info("DomainAppFilter on destroy ..."); super.destroy(); IsisContext.testReset(); } } {code} While IsisContext.testReset() needs a simple fix and could be renamed to 'destroy()'. > JEE Support - IsisContext requires proper lifecycling. > ------------------------------------------------------ > > Key: ISIS-1756 > URL: https://issues.apache.org/jira/browse/ISIS-1756 > Project: Isis > Issue Type: Improvement > Affects Versions: 1.15.1 > Reporter: Dan Haywood > Assignee: Andi Huber > Fix For: 2.0.0 > > > as per > https://lists.apache.org/thread.html/a815c6d3e50c02111d0cd3df93b70b529c18193f321e613b116119b4@%3Cdev.isis.apache.org%3E > The isis-context needs a proper lifecycling, meaning a deploy/undeploy cycle > should properly invalidate any state. (e.g meta model validation is currently > not cleared after an undeploy, in my case after calling > IsisContext.testReset()) -- This message was sent by Atlassian JIRA (v6.4.14#64029)