on 10-29-2008 3:00 AM
I am creating a dynamic HTML file in web dynpro java, it seems that no matter what type of WDScopeType I use, the actual HTML file is still on the server long after the user logs off! How and when do these resources get deleted??
If i access the url of this resource after i log off the portal, it is still there...
WDDeployableObjectPart dop = wdThis.wdGetAPI().getComponent().getDeployableObjectPart();
IWDCachedWebResource resource = WDWebResource.getPublicCachedWebResource(inString.getBytes("UTF-8"), WDWebResourceType.HTML, WDScopeType.SERVERSESSION_SCOPE, dop, "testhtmlfile");
The above code generates this URL with resource.getAbsoluteURL();:
http://servername:port/webdynpro/resources/cg.com/apinv/Components/com.cg.app.ApprovalComp/MyFile46379.html
HI
Try to set
setReadOnce : It defines that the element is read once and directly removed from the cache after the first time, it is read
public void setReadOnce(boolean isReadOnce).
Thanks
Anup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Anup,
Thanks I actually tried this setreadonce(true) before, and the resource remains on the server as i can access the html file directly.
Perhaps this is because i was in debug mode? I am not sure why it remains ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.