How can we get the value of com.ibm.ram.persist ?
One answer
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
Comments
Rich Kulp
FORUM MODERATOR / JAZZ DEVELOPER Aug 01 '13, 10:19 a.m.Why do you need it? This is entirely internal and not meant to be messed with?
Manjiri Kamat
Aug 01 '13, 11:48 p.m.We need it to access the asset.ras file.
Manjiri Kamat
Aug 02 '13, 12:16 a.m.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.
Gili Mendel
JAZZ DEVELOPER Aug 02 '13, 9:23 a.m.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.
Manjiri Kamat
Aug 05 '13, 2:02 a.m.But is it possible to get this value through code as earlier we got it from the configuration table?