cancel
Showing results for 
Search instead for 
Did you mean: 

Caching user shared data in WebDynPro (i.e. applicationBean)

Former Member
0 Kudos

Hi,

I'd like to know if there's a standard way to cache/access user shared data on the J2EE engine running my WebDynPro app.

I need to do that because Bapis call in our application are expensive. Thus we want to minimize them. It would be impossible to rewrite the whole backend, because we're migrating from an existing application.

I thought about sharing through a database local to the J2EE engine, or file sharing through a lock. But I bet these options are likely to hinder me than anything else.

Does anybody has a suggestion?

Thanks in advance,

Alexis Trudeau

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Reflecting about my problem, I came to the conclusion that I can simply share the data between users by creating a Singleton class in my application.

My mind was too much in the jsp modes (with session and application beans). I wasn't thinking out of the box. Application beans are shared in the context, acting much like a Singleton class, though you can have more than one instance shared depending on its id. At the same time, you can implement a Singleton class which holds several instances of itself.

Though I haven't tried it yet (too many other priorities) this should work since WebDynpro seems to be only 1 process sliced in multiple thread. Therefore the data segment should be shared.

Anyhow, I'll keep you posted with my progress.

Alexis

Former Member
0 Kudos

Alexis,

Could you be more specific?

1. User data -- data specific for <i>one</i> given user (or user session)

2. Shared data -- data shared between <i>all</i> users.

So "user shared data" is oxymoron.

Next, if (and only if I understand your question correctly, you can use NetWeaver wizard to create Adaptive RFC model. This model has an ability to cache results in different scopes: application / user session / current request.

Regards,

VS

Former Member
0 Kudos

Hi Valery

I think he is looking at solution where data from SAP can be cached and reused for display or other processing ,may be a middle tier database or may be an XML cache. Typically the kind of data that does not change frequently Master data or configuration data and an asynchronous mechanism by which data can be kept in sync with SAP

Regards

Pran

Former Member
0 Kudos

Indeed, my explanations are a bit misleading. According to your definition, I'm talking about shared data.

For example, in my application we have user profiles. Each user has a subset of these profiles.

Usually, these profiles are only modified during the deployment stage on the client's infrastructure.

Once settled, these profiles are static during production. In that case, I'd rather fetch all the profile once, and work with them locally on the J2EE engine instead of fetching them each time a user is authentified.

Do you have further suggestions?

P.S. Yes, I do use NetWeaver wizard to create Adaptive RFC Model

Former Member
0 Kudos

I have this requirement in my WebDynpro application.

I have an Adaptive RFC model to retrieve some data which is going to be the same for all users.

How do I cache the retrieved data so that I can use the same for all the users. My NWDS wizard does not give an option to specify this...