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.

Reply via email to