http://download.oracle.com/docs/cd/E12839_01/index.htm
Creating Domain Templates Using the Domain Template Builder
http://download.oracle.com/docs/cd/E12839_01/web.1111/e14139/toc.htm
Prepare Scripts and Files with Replacement Variables
http://download.oracle.com/docs/cd/E12839_01/web.1111/e14139/tempbuild.htm#insertedID14
Creating Domains Using WLST Offline
http://download.oracle.com/docs/cd/E12839_01/web.1111/e13715/domains.htm#i1018386
Creating Templates and Domains Using the Pack and Unpack Commands
http://download.oracle.com/docs/cd/E12839_01/web.1111/e14144/toc.htm
WLST command reference
http://download.oracle.com/docs/cd/E12839_01/web.1111/e13813/quick_ref.htm#insertedID0
readTemplate
http://download.oracle.com/docs/cd/E12839_01/web.1111/e13813/reference.htm#i1029278
writeDomain
http://download.oracle.com/docs/cd/E12839_01/web.1111/e13813/reference.htm#i1003687
adminServerName = "AdminServer"
adminServerUrl = "t3://localhost:7001"
adminUser = "weblogic"
adminPassword = "weblogic123"
domainName = "DaVeDomain"
domainHome = "/home/dave/" + domainName
templateName = "/app/bea/user_templates/" + domainName + ".jar"
print "Reading template " + templateName
readTemplate(templateName)
set("Name",domainName)
ls()
cd("/Security/" + domainName + "/User/" + adminUser)
cmo.setPassword(adminPassword)
writeDomain(domainHome)
closeTemplate()
startServer(adminServerName,
domainName,
adminServerUrl,
adminUser,
adminPassword,
domainHome,
block="true")
connect(adminUser, adminPassword, adminServerUrl)
ls()
shutdown()
exit()
startMyWeblogic.sh
DOMAIN_NAME="@DOMAIN_NAME"
DOMAIN_HOME="@DOMAIN_HOME"
ADMIN_URL="http://@SERVER_HOST:@SERVER_PORT"
. ${DOMAIN_HOME}/bin/setDomainEnv.sh
No comments:
Post a Comment