StopAllBusinessServices
 
Forums / SmartComponent Library - Developer Forum / StopAllBusinessServices

StopAllBusinessServices

3 posts, 1 answered
  1. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    16 Dec 2019
    Link to this post
    In as_disconnect.p, ServiceManager:StopAllBusinessServices is called in the FINALLY block.

    I also noticed there is a ServiceManagerClient class with a StopAllBusinessServices METHOD that calls StopAllBusinessServices in Consultingwerk.OERA.ServiceManagerClientTask on the server. Do I need to use the client flavor in addition to using the as_disconnect.p?

     
    CLASS Consultingwerk.OERA.ServiceManagerClient
        IMPLEMENTS IServiceManagerClient:
        /**
         * Purpose: Stops all Business Services Instances
         * Notes:
         * @param pcPartition The name of the AppServer partition for this call or "" for the default partition
         */
        METHOD PUBLIC VOID StopAllBusinessServices (pcPartition AS CHARACTER):
  2. Mike Fechner
    Mike Fechner avatar
    319 posts
    Registered:
    14 Sep 2016
    Answered
    16 Dec 2019 in reply to Roger Blanchard
    Link to this post
    as_disconnect executes this for bound sessions. It makes sense to call it from here when a bound session disconnects.

    The ServiceManagerClient is mainly used for tooling. Allowing a developer to shut down Business Services during development to work with latest code. 

    If you seek for a controlled was to manage the life time of business services, I recommend you read the article about the life-cycle management of business services on our documentation website. 
  3. Roger Blanchard
    Roger Blanchard avatar
    381 posts
    Registered:
    29 Jun 2018
    16 Dec 2019 in reply to Mike Fechner
    Link to this post
    I am not looking for a controlled way to manage just trying to figure out why we have connections that don't appear to be going away.

    I was running some tests in the office and saw that this is not called when using -sessionModel session-free
3 posts, 1 answered