Thursday, November 20, 2014

wsadmin check application exist or not

appname="Yourappname"
isapppresent=AdminConfig.getid("Deployment:"+appname+"/")
if len(isapppresent) > 0:
   print "the application %s is present" % appname
else:
  print "the application  %s is not present"  % appname
 

1 comment:

  1. Hi, you missed a / :
    dminConfig.getid("/Deployment:"+appname+"/")

    ReplyDelete

Your suggestions please