I am using Javamail to deposit messages in bulk via IMAP.
Looking forward for some Input.. Thanks

I am able to get the Store for IMAP and the IMAP Folder too while accessing it through multiple threads for multiple users . However, while trying to close the IMAPFolder at the end of the call I am getting the below error.

Error:
====
java.lang.IllegalStateException: This operation is not allowed on a closed folder
at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1074)
at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1050)
at com.agnity.vm.mssAdaptor.provider.MessageProviderImpl.disconnectFromInbox(MessageProviderImpl.java:335)
.....