A
Amit Jain
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.
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.