[英]Creating a managed server using Weblogic WLST
I'm trying to configure weblogic cluster using WLST. 我正在尝试使用WLST配置Weblogic集群。 When searching for script snippets for my Jython script, I came across this: Anyone tried Cluster automation with WLST? 在为我的Jython脚本搜索脚本片段时,我遇到了这个问题: 有人尝试过使用WLST进行集群自动化吗?
I'm trying to find out more about the following method of WLST and whether it works for Weblogic 10.3.x 我试图找出有关以下WLST方法的更多信息,以及它是否适用于Weblogic10.3.x。
managedServer = create(ServerName,'Server')
managedServer.setListenPort(ListenPort)
managedServer.setCluster(Clustername)
managedServer.setMachine(Machinename)
I've never come across this method. 我从来没有遇到过这种方法。 What are the differences between this and using cmo.createServer
to create a weblogic managed server? 这与使用cmo.createServer
创建cmo.createServer
托管服务器有什么区别? Are there any advantages to the former over the latter? 前者比后者有什么优势吗?
They both have a purpose depending on your situation: 它们都有一个目的,具体取决于您的情况:
The offline wlst command is this. 离线 wlst命令是这个。 Best used for a new domain with no admin server running: 最适合没有管理服务器运行的新域:
managedServer = create(ServerName,'Server')
The online wlst command is this. 在线 wlst命令是这个。 Best used for a domain that is already up and running: 最适合已启动并正在运行的域:
connect('weblogic', 'weblogic', 't3://localhost:7100')
edit()
startEdit()
cd('/')
cmo.createServer('new_server')
You can learn more about the offline vs online options in the Oracle docs . 您可以在Oracle文档中了解有关脱机与在线选项的更多信息。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.