cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fabou3377 <fabr...@bourqui.net>
Subject Re: org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
Date Sun, 11 Apr 2010 06:35:26 GMT

Thanks,

I have write this in the filter and its work:

public class ConfigFilter extends WebApplicationContextFilter  {

    @Override
    public synchronized void init(FilterConfig config) throws
ServletException {
        // this will init Cayenne
        super.init(config);
        setupDao();
    }

    protected void setupDao() {

        Map daoMapping = new HashMap();
        daoMapping.put(SurveyDao.class, new SurveyDao());
        DaoManager.setManager(new DaoManager(daoMapping));
    }

    @Override
    public void destroy() {
        Configuration.getSharedConfiguration().shutdown();
        super.destroy();
        
    }



}

Big Thanks for your answer
-- 
View this message in context: http://n3.nabble.com/org-apache-catalina-loader-WebappClassLoader-clearReferencesThreads-tp709729p711232.html
Sent from the Cayenne - User mailing list archive at Nabble.com.

Mime
View raw message