cancel
Showing results for 
Search instead for 
Did you mean: 

Caching file documents in server cache

lu_huynh
Participant
0 Kudos

Hi everybody,

I have a question about caching files on server side. I have implemented an application in JSP/Java using several FM's to get pdf-documents shown in the browser from KPRO. I successful can access the files by using URL given by a FM.

My question now is, if there is a possibilty to cache the files on server side (J2EE/ WAS java) to reach a higher performance? Maybe similar to the BSP cvaw_document_search from sap. I have read in some threads but I'm still not sure how to push the documents into the server cache.

I'm a newbie in that stuff, so I hope somebody can give me an answers, links or code samples....

Thanks in advance,

Lu

P.s.: Points will be regarded

Message was edited by:

Lu Huynh

Accepted Solutions (1)

Accepted Solutions (1)

detlev_beutner
Active Contributor
0 Kudos

Hi Lu,

See http://help.sap.com/saphelp_nw04s/helpdata/en/5f/2720a513ea4ce9a5a4e5d285a1c09c/frameset.htm for the cache settings of the iViews.

Hope it helps

Detlev

lu_huynh
Participant
0 Kudos

Hi Detlev,

thanks for the quick answer.

This looks like being the solution for my question! I have read about the cache levels. Now I have one more question, just to be sure.

Does it mean, if I deploy my j2ee application to the WAS Java I don't need to make some implementation in my source code for the caching? I just create an iView for the application and depending on the cache-level the content of the iView will be cached?

Kind regards,

Lu

detlev_beutner
Active Contributor
0 Kudos

Hi Lu,

In general: Right. But if you create an URL-isolated URL-iView with fetching mode on client side, caching of course does not work, see http://help.sap.com/saphelp_nw04/helpdata/en/8d/8e0c7e477e4239a7ee288d7846a0bb/frameset.htm for details.

So it depends a bit what kind of application you are deploying (pure Java/J2EE, WebDynpro, portal app) and how you integrate in into the portal.

Hope it helps

Detlev

lu_huynh
Participant
0 Kudos

Hi Detlev,

thanks again.

I think my question is answered, if I use fetch mode on server side(?), is that correct? What do u mean by depending on kind of application? I have implemented an application using JSP/Servlets/Java. Can I use or create an URL-iView with fetching mode on server side for caching? If yes, I will mark this topic as answered.

Thank you,

Lu

detlev_beutner
Active Contributor
0 Kudos

Hi Lu,

> if I use fetch mode on server side(?), is that correct?

Right, as explained in the second help.sap.com link I have provided.

> I have implemented an application using JSP/Servlets/Java.

That sounds like a standard J2EE app. WebDynpro applications behave different, as the integration is different (via an AppIntegrator iView). Portal applicacations behave different again, as the iView is built out of the app component directly (no URL iView or similar).

> Can I use or create an URL-iView with fetching mode on server side for caching?

Yes, see the documentation given.

Hope it helps

Detlev

Answers (0)