Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Default user deleted after executing create JMSServer using WLST

37 views
Skip to first unread message

Amit Jain

unread,
Sep 12, 2011, 5:16:49 AM9/12/11
to
Hi All,

see below scripts...We execute below piece of script after executing
create simple domain
script. In 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 = System.getProperty("wlst.properties")
if antPropertyFile is None:
print "Unable to locate ant property file. Please specify -
Dwlst.properties=<path to property file>"
exit(exitcode=-1)


pfile = FileInputStream(antPropertyFile)
wlstProperties = Properties()
wlstProperties.load(pfile)
decryptProperty = DecryptProperty()


username = wlstProperties.getProperty("weblogic.username")
password = wlstProperties.getProperty("weblogic.password")
url = wlstProperties.getProperty("providerURL")


connect(username, password, url)
adminServerName = cmo.adminServerName


edit()
startEdit()
# Create JMS server and assign the Filestore
jmsServer = create("AUAJMSServer", "JMSServer")
subTarget = getMBean("/Servers/" + "AdminServer")
jmsServer.addTarget(subTarget)
jmsServer.setPersistentStore(filestore)
cd('/JMSSystemResources')
save()
isRestartRequired()
----- Create JSM Server Script Ends -----

Thanks in advance...


regards, Amit J.

Amit Jain

unread,
Sep 12, 2011, 9:29:21 AM9/12/11
to
Hello All,

we observed that user exactly deleted when 'create' cmd is executed:
filestore = create("wlstProperties.getProperty(fileStoreName)",
"FileStore")
jmsServer = create("AUAJMSServer", "JMSServer")
...
..
etc.

Any suggestion...

regards, Amit J.

Lew

unread,
Sep 12, 2011, 6:22:39 PM9/12/11
to
Amit Jain wrote:
> see below scripts...We execute below piece of script after executing
> create simple domain
> script. In 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 = System.getProperty("wlst.properties")
> if antPropertyFile is None:
> print "Unable to locate ant property file. Please specify -
> Dwlst.properties=
> "
> exit(exitcode=-1)
>
>
> pfile = FileInputStream(antPropertyFile)
> wlstProperties = Properties()
> wlstProperties.load(pfile)
> decryptProperty = DecryptProperty()
>
>
> username = wlstProperties.getProperty("weblogic.username")
> password = wlstProperties.getProperty("weblogic.password")
> url = wlstProperties.getProperty("providerURL")
>
>
> connect(username, password, url)
> adminServerName = cmo.adminServerName
>
>
> edit()
> startEdit()
> # Create JMS server and assign the Filestore
> jmsServer = create("AUAJMSServer", "JMSServer")
> subTarget = 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

Amit Jain

unread,
Sep 14, 2011, 5:08:48 AM9/14/11
to
> Lew- Hide quoted text -
>
> - Show quoted text -

Please go through below link to get ride of problem
0 new messages