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

Is a Portal service guaranteed to be a singleton?


Does anyone know if a portal service is guaranteed to be a singleton (i.e. there will only be one instance of it) ?

From my tests, this appears to be true, but are there situations where it is not?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Feb 01, 2005 at 05:22 PM

    Hi Dagfinn,

    I have your question and the answer to this open since this morning, but didn't send it for not having answered the second question about whether all services are loaded by the same classloader (I'm quite sure answer is also yes, but to be <i>really sure</i>, one should have a look into the sources; no time at the moment).

    Anyhow, pfffft, dust, go away, here comes the answer from this morning:

    Yes, see the statement of the leader of the leaders, the poster of the posters, the king of the kings, the famous ... taramtamtam ... Detlev 😉 What is the lifecycle of Portal Service

    Or simply trust SAP: "Since an extension is a service, there is only one instance in the portal. It is a singleton." To be read in

    You can also check the sitaution: Services are centralized "stopped" and/or "started" / "restarted" from System Administration ... (the path you will find by yourself or already know).

    Hope it helps


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member


      Thanks for confirming this, O' Great One

      I am also planning to look into the source regarding the classloader of the service. My question in the other thread was more of a rethorical question

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.