Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!nx01.iad01.newshosting.com!newshosting.com!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!x21g2000prd.googlegroups.com!not-for-mail From: Amit Jain Newsgroups: comp.lang.java.programmer Subject: Re: Default user deleted after executing create JMSServer using WLST Date: Wed, 14 Sep 2011 02:08:48 -0700 (PDT) Organization: http://groups.google.com Lines: 52 Message-ID: <9f6c43e1-eef2-43ce-9a98-ec922db39320@x21g2000prd.googlegroups.com> References: <34a98472-e3fc-4634-9485-7ea190f1bde4@y39g2000prd.googlegroups.com> <4153136b-2a7f-43a6-906f-04d997e9f0b7@glegroupsg2000goo.googlegroups.com> NNTP-Posting-Host: 202.91.134.6 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1316025274 19958 127.0.0.1 (14 Sep 2011 18:34:34 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 14 Sep 2011 18:34:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: x21g2000prd.googlegroups.com; posting-host=202.91.134.6; posting-account=nfY0mAoAAACVg1Q2sAv3E8UuwasUQpaM User-Agent: G2/1.0 X-HTTP-Via: 1.1 genproxy:8080 (squid/2.6.STABLE3), 1.0 iproxy3n:8080 (squid/2.7.STABLE2), 1.0 iproxy3n.amdocs.com:8888 (IWSS) X-Google-Web-Client: true X-Google-Header-Order: ARLEUHCVF X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; MS-RTC LM 8),gzip(gfe) Xref: x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:8028 On Sep 13, 3:22=A0am, Lew wrote: > Amit Jain wrote: > > see below scripts...We execute below piece of script after executing > > create simple domain > > script. =A0In create simple domain we are just creating a Default > > administrator along with domain. > > > ----- Create JSM Server Script Starts ----- > > from java.lang import System > > from java.util import Properties > > from java.io import FileInputStream > > from com.amdocs.oss.aua.ant.taskdefs.deploy import DecryptProperty > > > antPropertyFile =3D System.getProperty("wlst.properties") > > if antPropertyFile is None: > > =A0 =A0 print "Unable to locate ant property file. Please specify - > > Dwlst.properties=3D > > " > > =A0 =A0 exit(exitcode=3D-1) > > > pfile =3D FileInputStream(antPropertyFile) > > wlstProperties =3D Properties() > > wlstProperties.load(pfile) > > decryptProperty =3D DecryptProperty() > > > username =3D wlstProperties.getProperty("weblogic.username") > > password =3D wlstProperties.getProperty("weblogic.password") > > url =3D wlstProperties.getProperty("providerURL") > > > connect(username, password, url) > > adminServerName =3D cmo.adminServerName > > > edit() > > startEdit() > > # Create JMS server and assign the Filestore > > jmsServer =3D create("AUAJMSServer", "JMSServer") > > subTarget =3D getMBean("/Servers/" + "AdminServer") > > jmsServer.addTarget(subTarget) > > jmsServer.setPersistentStore(filestore) > > cd('/JMSSystemResources') > > save() > > isRestartRequired() > > ----- Create JSM Server Script Ends ----- > > This looks like Python, not Java. > > -- > Lew- Hide quoted text - > > - Show quoted text - Please go through below link to get ride of problem