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

Initialization hook for Web Dynpro applications

Dear all,

does anybody know about a hook to perform global Web Dynpro application initialization tasks?

I need to perform some application initialization once before any components/controllers are hit.

(So far as I experienced, wdDoInit() is invoked for each user (session) accessing the app.)

Of course a application termination hook would be great as well...

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 26, 2005 at 03:56 PM

    Peter,

    Every application has exactly one top-level component. Why not to use wdDoInit / wdDoExit of its component cotroller?

    VS

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Peter,

      Then static block should be enough in component controller class. Code will be executed on class load, this occurs when first component instance is created.

      Or static block paired with wdDoInit + static boolean variable that initialization was done.

      Thoughts?

      VS

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 08:48 AM

    Can you expand on exactly what you want to achieve, and why?

    As far as I know, the Web Dynpro app is started for each user session, so there is no direct equivalent of application-scope variables, only session-scope.

    However, depending on what you are trying to do, it may be possible to think of a workaround in order to achieve the same result.

    Walter

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Thanks Walter,

      but my intention of initializing a light weight container and non-intrusive O/R mapping is to <b>avoid</b> usage of EJB at all.

      It's a pity that the web dynpro framework seems to catch one in the EJB trap...

      Best regards

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.