Skip to Content
author's profile photo Former Member
Former Member

WD and EJBs


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)?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2003 at 05:10 PM

    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).



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.