cancel
Showing results for 
Search instead for 
Did you mean: 

stop deployed application using sap api (java)

0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

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