Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How can we get the value of com.ibm.ram.persist ?

We try to get this value from the Configuration table in the RAMDB,but we noticed that it is not present in the RAM 7511 DB.

Also got to know that it is stored as a resource url in the app server configuration for RAM 7511.

How can we get this value of the resource url through code ?

0 votes

Comments

Why do you need it? This is entirely internal and not meant to be messed with?

We need it to access the asset.ras file.

We manually set this value in the table to use it but wanted to know from where doed the application get it to show it on the configuration page.
We do not update this value but just use the asset.ras file from here in the backend.
We do not expose it to the user.

Accessing the filesystem directly is not a tivial task, as RAM organizes the files into directory buckets (some OSs have a limit on the number of files per directory).

Also, updates are not always refresh the .ras, and may be lazily driven on the first (RAM instigated) download.

But is it possible to get this value through code as earlier we got it from the configuration table?



One answer

Permanent link
The .ras file as you probably know is just a zip file with the contents of the asset.  If a user updates an existing asset by adding new files, sometimes the .ras file is not reconstructed right away.  The new files are placed in the dbid-xxxx folder.  When a user downloads the asset for the first time, the zip is constructed in parallel with the download.  This is done to improve performance during the upload.  So if you manually access the .ras file on the file system, you may not actually get the newest version of the asset.

The only way to trigger the .ras construction is to download the asset via the web, eclipse client, or API.
  
There are many APIs to download the asset.ras file.  They are
1)  REST (just a simple HTTP GET)
http://open-services.net/wiki/asset-management/OSLC-Asset-Management-2.0-Samples/#Download-an-asset-as-a-zip-file

2)  A Java API
http://pic.dhe.ibm.com/infocenter/ramhelp/v7r5m1/topic/com.ibm.ram.doc/topics/r_api_fetchanexistingasset.html

3)  An ANT API
http://pic.dhe.ibm.com/infocenter/ramhelp/v7r5m1/topic/com.ibm.ram.ant.doc/topics/asset.html

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Aug 01 '13, 8:20 a.m.

Question was seen: 4,248 times

Last updated: Aug 05 '13, 11:52 a.m.

Confirmation Cancel Confirm