I have a scenario where I have a folder c:\messages.
I am listening a queue for text messages (jms.Textmessage)
I have two requirments
To save the Textmessage in the messages folder. The Textmessage file name should be the messageid.( messageid is unique for each Textmessage).
If the Textmessage file already exists in the messages folder then it should not be saved.
Any idea how I can go about doing this? Any help with code is greatly appreciated.