Array of linked lists in java for xml files
I am building a JMS recovery project that listens to a topic and picks up xml files. I am now working on the recovery portion where after a crash occurs, I will have 2 threads going. One that recovers the xml files I missed which are stored in a database and another thread that listens for new xml files. I don't want the new xml files processed until the recovery finishes. I figured that the new xml files should be stored in a linked list or something. Any suggestions which storage system would be the best for this scenario. When the recovery ends I want to remove the contents of the list using the FILO principle. 
Array of linked lists in java for xml files
===

I am building a JMS recovery project that listens to a topic and picks up xml files. I am now working on the recovery portion where after a crash occurs, I will have 2 threads going. One that recovers the xml files I missed which are stored in a database and another thread that listens for new xml files. I don't want the new xml files processed until the recovery finishes. I figured that the new xml files should be stored in a linked list or something. Any suggestions which storage system would be the best for this scenario. When the recovery ends I want to remove the contents of the list using the FILO principle. 