Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JavaMail POP3 folder.close() method close also store!

843830Apr 7 2004 — edited Apr 14 2004
Hi @ll,

I was wondering why I lose the connection to the mail store while retrieving information from it without
calling the method store.close()! At the end I found out that the method folder.close(boolean) also
close the store!

Following you see the debug log of the JavaMail API:
C: QUIT
S: +OK POP3 server closing connection
I really have to keep the connection alive to the server to get all messages at once from the mail
store. But after closing the folder my client is disconnected :o(

From my point of view it is not very correct that the API close the connection to the store in the background
that my program has implicity opened before! I expect that the connection is alive as long I implicity call
the method store.close()!

Is there a workaround or a patch that the store won't be closed by calling the method folder.close(boolean)???

Thanks for helping!
Greetz,
Dan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 12 2004
Added on Apr 7 2004
10 comments
1,119 views