execute OBIEE wlst command by java -


i'm having prolem getting role java when using wlst. code following:

import weblogic.management.scripting.wlst; import weblogic.management.scripting.utils.wlstinterpreter; public class javatestwlst {     public javatestwlst() {      }         public static void main(string[] args) {         try {             wlst.ensureinterpreter();             wlstinterpreter interpreter = wlst.getwlstinterpreter();                                     interpreter.exec("connect('admin','admin','t3://server:7001')");                                     interpreter.exec("listapproles('obi')");                //or interpreter.exec("listapproles(appstripe='obi')");             //still eror nameerror: listapprole          }         catch(exception e){             system.out.println("exception_111:"+e.tostring());                   }        }    } 

i've connected sussessfully having error. error: exception:traceback (innermost last): file "", line 1, in ? nameerror: listapproles

please me thanks.

the function module calling going takes hashmap object (key,value pair). arugument must passed key. listapproles(appstripe="appname") code line change accordingly shown below:

interpreter.exec("listapproles( appstripe='obi')");  

Comments