R: [commons-email] Upgrade to java 17 and jakarta mail

2024-01-29 Thread Raffaele Gambelli
Hi Gary, my usage of commons-email is only about the sending of messages, simply plain or html ones, with or without attachments. All my tests were ok. Here follows classes that I use in my project: import org.apache.commons.mail2.core.EmailConstants; import org.apache.commons.mail2.core.Email

Evaluating FileAlterationMonitor

2024-01-29 Thread Thomas, Patrick R
Hello, Our application monitors multiple folders for new files to import. Once a new file is detected, it is moved to a working folder where it is processed and then moved to an archive folder. Files are never updated, and ones that are deleted before processing are skipped. The current impleme

[IO] Evaluating FileAlterationMonitor

2024-01-29 Thread Gary Gregory
Resetting the subject to include the component. Gafy On Mon, Jan 29, 2024, 1:45 PM Thomas, Patrick R wrote: > Hello, > > Our application monitors multiple folders for new files to import. Once a > new file is detected, it is moved to a working folder where it is processed > and then moved to an

Re: Evaluating FileAlterationMonitor

2024-01-29 Thread Gary Gregory
The documentation we have is on the site and the Java document. If you have improvements on the code or documentation, we welcome them as PRs on GitHub. The monitor thread wakes up, looks around, and fires events. If a file is not there because a network connection is broken, this will show up as

Re: Evaluating FileAlterationMonitor

2024-01-29 Thread Gary Gregory
Sigh, Java document -> Javadoc. Gary On Mon, Jan 29, 2024, 2:04 PM Gary Gregory wrote: > The documentation we have is on the site and the Java document. If you > have improvements on the code or documentation, we welcome them as PRs on > GitHub. > > The monitor thread wakes up, looks around, an

RE: Evaluating FileAlterationMonitor

2024-01-29 Thread Thomas, Patrick R
Thanks for the quick response. I will need to test its behavior for lost connections. Based on what I have discovered so far, I will have to create my own monitor. I need to create a list of new files from all of the monitored folders during each pass and then sort them by date/time to make sur

Re: Evaluating FileAlterationMonitor

2024-01-29 Thread Gary Gregory
YW. I think you could sort files if I refactor the monitor a bit such that you can plug in a custom comparator (it's already there internally)... Gary On Mon, Jan 29, 2024, 5:19 PM Thomas, Patrick R wrote: > Thanks for the quick response. I will need to test its behavior for lost > connections.