classpathx-javamail
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Classpathx-javamail] closed sockets


From: Thufir
Subject: [Classpathx-javamail] closed sockets
Date: Mon, 02 Apr 2012 18:15:36 -0700
User-agent: Mozilla/5.0 (X11; Linux i686; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1

A Facelets backing bean uses the following utility class for NNTP operations:

https://gist.github.com/2288307

Which works fine provided that the connection is left open, that the folder and store are not closed. However, is it not good practice to close the folder and store when done?

So, I've tried adding some booleans, but am otherwise at a loss as to how correctly deal with NNTP connections to leafnode on localhost.

Is there a better approach? What happens is that Facelets makes a number of beans, each of which use the above utility class which, in turn, hammers leafnode resulting in:

javax.el.ELException: /foo/client.xhtml @11,74 value="#{messageBean.messages}": javax.mail.MessagingException: Socket closed;
  nested exception is:
    java.net.SocketException: Socket closed




thanks,

Thufir



reply via email to

[Prev in Thread] Current Thread [Next in Thread]