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

Which methods are called during life cycle of Portal Runtime

Hi

can anyone let me know which all methods are called during life cycle of Portal Runtime

and how are they called......

useful answers will be rewarded

Regards

JM

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Nov 20, 2007 at 01:08 PM

    Hi John,

    Life cycle of methods called by portal runtime during the life time of portal service

    1. Generic init method of the service. Will be called by the portal runtime.

    public void init(IServiceContext serviceContext)

    2. This method is called after all services in the portal runtime have already been initialized.

    public void afterInit()

    3. configure the service

    public void configure(com.sapportals.portal.prt.service.IServiceConfiguration configuration)

    4. This method is called by the portal runtime when the service is destroyed.

    public void destroy()

    5. This method is called by the portal runtime when the service is released.

    public void release()

    6. Return the context of the service, which was previously set by the portal runtime

    public IServiceContext getContext()

    7. This method should return a string that is unique to this service amongst all other services deployed in the portal runtime.

    return a unique key of the service

    public String getKey()

    Thanks and regards,

    -Madhu

    Add a comment
    10|10000 characters needed characters exceeded

    • hello,

      Life cycle of methods called by portal runtime during the life time of portal component

      1. Invoked when this Portal Component is loaded for the first time in memory. The container calls the init method each time this Portal Component is loaded in memory

      public void init()

      2. The service method is the central point of any interaction with a Portal Component. It processes the clients requests

      public void service(IPortalComponentRequest request, IPortalComponentResponse response) throws Portal ComponentException

      3. Invoked when this Portal Component is discarded from memory. The destroy method is called each time the PRT (Portal Builder Runtime) decides to discard this component.

      public void destroy()

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.