cancel
Showing results for 
Search instead for 
Did you mean: 

shared memory

Former Member
0 Kudos

Hi Community,

I got a question. Is it possible to save an Object in a shared memory storage (each view should have access to this), initialize it in one view and read it in another view? So i could avoid sending complex data from one view to another via plugs. Thanks for answering, regards, Robert.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Robert,

the transient data store in Web Dynpro is the context. If you want to exchange data between different views, it's sufficient to create and fill a context in a controller, which both views are able to access. E.g.:

1. Create the necessary data structures in a custom controller or the component controller.

2. Map the corresponding context nodes of the view controller to the nodes of this controller context.

Result is, that both views share the data stored in the mapped context.

Hope that helps.

Regards

Stefan

Former Member
0 Kudos

That seems to be some kind of problem because of the complexity of the data structure. So I will evade to sending keys between the views and loading the data separately from the data base.

One question remains. I created a Java Persistence Project and a Web Project binding the Persistence Project

(the tables).

Via "DataSource datasource = (DataSource) ctx.lookup("java:comp/env/TMP_PERSISTENCE");" I loaded the ressource.

Now I need to know how to import this persistence project into my WD- Project. I'd like to access these tables through a Java- Class I've written and implement some calls in the onAction..(...) term of my WD-Implementation.

I look forward to response, regards, Robert.

Former Member
0 Kudos

Hi Robert,

i'm not quite sure what you mean with "Persistence Project". Is it a Dictionary project holding the tables, structures and simple types or a J2EE project?

Is the Java class you mention something like an entity bean, a session bean?

Regards

Stefan