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!

imap idle connection drop when using imapStore

843834May 8 2008 — edited May 15 2008
Hi all,
i'm using imapStore to make connection to imap server each time for processing. So far, i dont get any error "bye..imap.." etc
		
				store = new com.sun.mail.imap.IMAPStore(session, new URLName(pop3Account.getServerName()));
				store.connect(pop3Account.getServerName(), pop3Account.getServerPort(), pop3Account.getUsername(),pop3Account.getPassword());
		
I have a thread at the background that connect to imap and push email using "idle" . I keep on getting "bye..imap" for this thread. Aren't "imapstore" automatically ensure only one connection make to each folder? If yes, why i still getting "bye..imap"..error ? By the way, i use the above code to make connection and I dont store.close connection .
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 12 2008
Added on May 8 2008
7 comments
617 views