Monday, December 8, 2003 03:44 PM
I have a servlet listening to an exchange INBOX folder and have implemented the messagesAdded() method. Quite often when one message is added to the folder the getMessages() method returns a message Array with a size of two, both being the same message. So after processing the first message and deleting it I get a MessageRemovedException when trying to process the second message. Currently I'm catching the MessageRemovedException and continuing execution but I would rather figure out why this is happening and correct it so I may implement a better Exception Handler for actual errorounsly deleted messages.