How can I persist my Data
I have deployed a web application with its database (DB4O) integrated in the application itself as a file in WEB-INF directory.
The application works fine. After the deployment I can enter Data into may integrated database and the data are persistent as long as I do not stop the deployment.
But when I have stopped the deployment and started tehe deployment again all data are lost.
What did I wrong ?
what steps are needed to connect my cloud foundry application to my Volume ?
Now that I have my application running, I have created a 1 GB volume on amazon ebs.
What steps are needed to bring my db4o dataset to that volume and acces that dataset from my application ?
On my local linux system I access the file via a pathname: /opt/db4o/myfile.yap
What pathname is needed for the dataset on the ebs volume ?
volume mounted, formatted and readable but still a problem
I copied my Dataset mitglieder.yap to /vol and was able to access to that dataset. :)
Because of a db4o problem, that I already posted in db4o forum, I can use the yap-file only if it is inside the webroot directory. So I tested a workaround on my local machine copying from vol to webroot on start of tomcat and copying back on shutdown. That works fine on my local machine, but on cloud foundry it seems that only the /vol to webroot direction ist working, so all modifications are lost.
I've built in some logging, that I can see on the tomcat console on my local machine, Can I make the tomcat logging visible on cloud Foundry too ?