Re: MySQL error - connection reset

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Oct 28 2010 - 13:57:24 UTC

  • Next message: Michael Gentry: "Re: Cayenne Transactions vs MySQL Transactions"

    It was for the users of org.apache.cayenne.conf.WebApplicationContextFilter. If an app bootstraps Cayenne on its own, I would suggest emulating this filter's "destroy" method in an appropriate servlet or filter:

       public void destroy() {
           Configuration config = Configuration.getSharedConfiguration();
           if (config != null) {
               config.shutdown();
           }
       }

    Andrus

    On Oct 28, 2010, at 4:23 PM, Michael Gentry wrote:

    > I believe this was fixed in 3.0.1.
    >
    > On Thu, Oct 28, 2010 at 7:31 AM, Bruno Ren Santos <brunoren..olos.pt> wrote:
    >> Also when i undeploy a portlet with cayenne embedded on it i get the error
    >>
    >> SEVERE: A web application appears to have started a thread named
    >> [cayenne-edt-2855942-4] but has failed to stop it. This is very likely to create
    >> a memory leak.
    >>
    >> 28/Out/2010 12:29:56 org.apache.catalina.loader.WebappClassLoader
    >> clearReferencesThreads
    >>
    >> Several times, which also means, I think, that the connection is on.
    >>
    >>
    >>
    >> Thanx
    >>
    >>



    This archive was generated by hypermail 2.0.0 : Thu Oct 28 2010 - 13:57:55 UTC