on 09-25-2009 10:15 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.