on 10-05-2004 9:52 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.