Skip to Content

Permanent file creation

Hi,

Hoping someone can point me in the right direction maybe a newbie question (again) but interested in any suggestions to the following question.

I have deployed an open source spatial application called geoserver to the trial NetWeaver cloud. This application uses a "data" folder on the operating system to store persistent data.

The geoserver WAR file download contains the "data" folder, this folder is used by the application while in use. I can control the location of this directory via a setting in the web.xml and it can be either a full/relative path

<context-param>

<param-name>GEOSERVER_DATA_DIR</param-name

Is it possible to have a folder/directory which would survive reboot/restart of the server?

I found this thread which mentions the document service and a work folder, both of which appear not to resolve my issue.

http://scn.sap.com/thread/3216757

Also the answer to this question was a temporary directory, which sounds like it will not work as I would like.

As I am experimenting with some frontend changes for my trial application, every time I deploy these changes I may lose some formatting.

E.g. currently some of the formats look like this, a tip of the hat to Gordon Du who did lead the way with SCN points before Jive came along.

If I change some settings on the next reboot this may look different.

Follow this link for an interactive demo, if you click on a country you will see some old SDN business cards *which must live on somewhere out there 😊

Cheers

Robert

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Sep 18, 2012 at 06:36 AM

    Hi Robert,

    There are two types of persistent storage in SAP NetWeaver Cloud:

    - Persistence Service for storing data in a relational database

    - Document Service for storing unstructured or semi-structured data (files, documents) in a content repository

    There is no persistent folder/directory that survives restart of the server, you have to use one of the above.

    What kind of data does the app read/store in that folder? Probably it could be tweaked to work with the Document Service storage?

    Cheers,

    --Vlado

    PS: Was glad to see my name after clicking on Bulgaria 😊

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Vlado,

      Thought that was the case after reading the documentation. Was hoping for an easier answer in the time I have left with the NetWeaver Cloud trial. There may well be alternatives as I do load a shapefile from my dropbox share in another configuration, but the performance is not a good as local data.

      Thanks for taking the time to reply and I am happy to hear from a top contributor from Bulgaria!

      Cheers

      Robert

  • Posted on Sep 18, 2012 at 07:46 AM

    As Vlado rightly said the document service would be the recommended way to store (versioned) documents. Storing BLOBs in the DB may be also an appropriate solution.

    Please note that there is a related thread talking about temp. file storage here:

    http://scn.sap.com/thread/3216757

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.