cancel
Showing results for 
Search instead for 
Did you mean: 

data in cache

Former Member
0 Kudos

Hi,

Webdynpro session variable should not be used, as it will be the violation fo rule Webdynpro inner classes should not be used.

Whats the way to put data in cache for a user. I have 8 different projects and deployed on Portal and used as webdynpro iViews.

Now for the logged in user, how to maintain data in cache, so that no need to access the data again from database for the same queries.

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hi Naveen,

Check my solution: /people/maksim.rashchynski/blog/2006/08/07/intercomponent-parameters-exchange

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hi Maksim,

I will read the solution. Thanks!

Former Member
0 Kudos

Hi Maksim,

This solution looks for DC aproach, I am using Non-DC approach.

Any suggestion, hwo to maintain session in WebDynpro using non-DC approach?

I wnat to use login proxy for different aplictaions under different project structures.

else:-Once I intialize the proxy , how to reuse the same proxy object across the projects structures?

Message was edited by: Nav

Former Member
0 Kudos

Hi, I am trying to get WD Session with the following code in 2004s:-

HttpServletRequest request = ((IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletRequest();

HttpSession session = request.getSession(true);

String sessionId = session.getId();

It gives compilation error for IWebContextAdapter interface, as its not found.

__________

How to get the session?

Or, how to put some object to be shared across projects structures for different applications in Non-DC approach?

Message was edited by: Nav

Former Member
0 Kudos

Nav,

<a href="https://media.sdn.sap.com/javadocs/NW04s/SPS7/wd/com/sap/tc/webdynpro/services/sal/adapter/api/IWDWebContextAdapter.html">IWDWebContextAdapter</a> is deprecated. Instead, use <a href="https://media.sdn.sap.com/javadocs/NW04s/SPS7/wd/com/sap/tc/webdynpro/services/sal/adapter/api/IWDProtocolAdapter.html">IWDProtocolAdapter</a> to access the protocol abstraction of the current request-response-cycle. Check, if <a href="https://media.sdn.sap.com/javadocs/NW04s/SPS7/wd/com/sap/tc/webdynpro/services/sal/adapter/api/IWDWebContextAdapter.html#getRequestParameter(java.lang.String)">getRequestParameter</a> helps you in getting the parameters.

Bala

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Refer to the thread,

Regards

Srinivasan T

Former Member
0 Kudos

Thanks Srinivasan!

do you have any example of usage of EJB or web service model for the same purpose?

thanks!