and whenever we restart the server it will re-process the latest message in the queue.

The message bean is setup to email our clients and they keep getting duplicate emails of events that have happened in the system because of this.

1. Is there something I'm doing wrong in the setup?
2. Is this a Resin bug?
3. Is the code supposed to do anything to flag the message as having already been sent? If so, how?
3. We have a workaround by using the in-memory queue but we would like to still use the file queue as the documentation suggests.