You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Andi Huber (JIRA)" <ji...@apache.org> on 2017/10/30 16:39:00 UTC

[jira] [Issue Comment Deleted] (ISIS-1756) JEE Support - IsisContext requires proper lifecycling.

     [ https://issues.apache.org/jira/browse/ISIS-1756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andi Huber updated ISIS-1756:
-----------------------------
    Comment: was deleted

(was: 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)