Apologies for the fairly open question however I feel it needs to be this way.
In any given Java project, preferably a web service, have you ever had to store XML files? At the moment I am creating a Google Web Toolkit web service and I need a way to 'store sessions'( like in iGoogle to store the layout ). However once I have this mechanism down... I need a place to store the files on the server.
I've thought about storing them in the 'Resources' folder in the Java project ( src/main/resources/
) however something tells me this is impossible as it's deployed to a Tomcat server packaged up in a .war
.
Is there any standard way of handling this? Does anyone have any ideas on a way in which I should approach it? In a Python project I have done, I whacked config files straight into /path/to/resources/folder
however I feel it doesn't need to be this complicated?!