Skip to Content
avatar image
Former Member

WD and EJBs

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    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).

    HTH,

    Karin

    Add comment
    10|10000 characters needed characters exceeded