0 Replies Latest reply on Dec 10, 2007 6:10 AM by Ulli Mählmann

    Importance of PrintWriter.close()

    Ulli Mählmann Newbie

      Hi all,

      one question:
      what happens, if a servlet prints out a response to the client by using:

      response.getWriter().print("my answer"); //response instanceof HttpServletResponse

      and the printWriter is NOT closed at all???

      Will it lead to a memory leak?..or does jboss close open connections itself?

      JBoss Version: 4.0.3SP1

      thanks for any hints