Re: org.apache.catalina.loader.WebappClassLoader clearReferencesThreads

From: fabou3377 (fabric..ourqui.net)
Date: Sun Apr 11 2010 - 02:35:26 EDT

  • Next message: Michael K: "Cayenne and EJB"

    Thanks,

    I have write this in the filter and its work:

    public class ConfigFilter extends WebApplicationContextFilter {

       ..verride
        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));
        }

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



    This archive was generated by hypermail 2.0.0 : Sun Apr 11 2010 - 02:36:13 EDT