Skip to Content

stop deployed application using sap api (java)

hi,

is it possible to stop/shutdown a deployed application (webservice, dynpro, portalcomponent, etc) using a java sap api? just like stopping an application using the visual adminstrator unter the deploy-tab?

thanks in advance,

constantin

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 25, 2009 at 10:54 AM

    solved it myself. you need to get the deploy.jar (\usr\sap\(instance)\JC00\j2ee\cluster\server0\bin\services\deploy), add it to the project.

    InitialContext ctx = new InitialContext();
    Object obj = ctx.lookup("deploy");
    DeployService ds = (DeployService) obj;
    ds.stopApplicationAndWait("vendor/application");

    Edited by: Constantin Wildfu00F6rster on Sep 25, 2009 12:54 PM

    Add comment
    10|10000 characters needed characters exceeded