Use the Jython or Jacl scripting languages to deploy or
remove portlet-based administrative console applications.
Before you begin
Verify that the administrative console enterprise archive
(EAR) file is not archived before installation.
Procedure
- Deploy a portlet-based console application into the EAR
file.
- 啟動 wsadmin Scripting 工具。
- Deploy a portlet-based console application into the
EAR file.
如果要使用現有的接聽器埠,而不使用或建立新的啟動規格,請判斷 EJB JAR 版本是否早於 2.1 版。
當您指定 -usedefaultbindings 選項來部署應用程式時,系統會自動建立及使用啟動規格。
如果啟動規格存在,系統會忽略接聽器埠,改用啟動規格。
如果要利用已定義的接聽器埠來部署 EJB JAR 2.1 版或以上的應用程式,而不用新的啟動規格,請將相關設定檔的
properties 目錄之下 wsadmin.properties 檔中的
com.ibm.websphere.management.application.dfltbndng.mdb.preferexisting 系統內容設為 true。
Using Jython:
AdminApp.update('isclite', 'modulefile', '[-operation add -contents
/WebSphere/AppServer/systemApps/isclite.ear/upzippedWarName
-contenturi upzippedWARName -usedefaultbindings -contextroot contextroot]')
Using Jacl:
$AdminApp update isclite modulefile {-operation add -contents
/WebSphere/AppServer/systemApps/isclite.ear/upzippedWarName
-contenturi upzippedWARName -usedefaultbindings -contextroot contextroot}
- Save your configuration changes.
請利用下列指令範例來儲存您的配置變更:
AdminConfig.save()
- Remove a portlet-based web application archive (WAR) file.
- 啟動 wsadmin Scripting 工具。
- Remove the portlet-based WAR file, as the following
examples demonstrate:
Using Jython:
AdminApp.update('isclite', 'modulefile', '[-operation delete -contenturi WarName]')
Using Jacl:
$AdminApp update isclite modulefile {-operation delete -contenturi WarName}
- Save your configuration changes.
請利用下列指令範例來儲存您的配置變更:
AdminConfig.save()