cancel
Showing results for 
Search instead for 
Did you mean: 

WD and EJBs

Former Member
0 Kudos

Hi,

Is there any information how exactly WebDynpro manages the synchronization of the data between the context end EJBs. Does it keep some permanent reference to the EJBHome or EJBObject or it instantiates them every time some synchronization is needed? What is the performance when too many EJBs are needed (for example when the information in the context is too much)?

Reagrds,

Metodi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello Metodi,

The Web Dynpro context is designed in a way so that data can be dereferenced if no longer needed (e.g. this is done by calling IWDNode.invalidate() when doing it explicitly or by changing the lead selection of the node where the invalidation is done implicitly).

If you need EJB specific synchronization behavior or EJB specific load/store methods on data, you would implement it by yourself:

When you bind the EJB to the model node, you can retrieve the EJB instance again by calling the modelObejct() method on the element of the model node. Then, you can load/store data in your event handlers or coding areas.

The resource management should be part of the EJB container implementation.The container is responsible for freeing EJB resources (also if the application holds a reference to the EJB).

HTH,

Karin