shiv_0013 0 Newbie Poster

I am writing a java webservice which has two functions. One has to receive and save two string data and the other has to provide these two data.Suggest me what is the best to achieve this without using a db.

I tried the below solution:
I had a excel sheet in src folder and saved the data in it. I accessed this excel file using "this.getClass().getResource()". Now, the excel sheet will be copied to bin folder and it will be used by webservice.
But I am not sure whether this is the right way to do it