IBM WebSphere Application Server中受监视部署的轮询间隔是什么 它是默认启用的吗? 我们如何手动启用它。
我们如何在WSADMIN的帮助下改变目录
更改与其相关的任何配置是否需要服务器回收?
答案 0 :(得分:2)
在使用受监控的目录应用程序部署服务之前,必须先启用它。您可以选择更改默认的受监视目录和轮询间隔值。默认情况下,未启用受监视的目录应用程序部署服务,受监视的目录为app_server_root / monitoredDeployableApps,轮询间隔为5秒。
您可以使用管理控制台或wsadmin脚本来启用或禁用受监控目录部署,并更改受监控目录和轮询间隔。
monitoredDirectoryDeployment对象具有以下属性:
程序
Use the Global deployment settings page of an administrative console to set monitored directory values.
Click Applications > Global deployment settings.
To enable monitored directory deployment, select Monitor directory to automatically deploy applications.
To disable monitored directory deployment, clear Monitor directory to automatically deploy applications.
To change the monitored directory path, specify a new value for Monitored directory.
Ensure that the directory that you specified for Monitored directory exists. The product does not create the directory for you.
To change the polling interval, specify the number of seconds for Polling interval.
Click Apply.
If you are using an administrative console for a base (stand-alone) application server to change monitored directory values, restart the application server.
If you are using an administrative console for a deployment manager to change monitored directory values, restart the deployment manager.
您可以访问IBM页面了解更多信息..
答案 1 :(得分:1)
对于受监控的部署,默认值为' 5'秒。
您可以从"全局部署设置"修改它从左侧导航面板。
了解更多信息,请通过这个优秀的链接, http://webspheretools.com/sites/webspheretools.nsf/docs/WebSphere%208%20Auto%20Deploy
答案 2 :(得分:1)
默认情况下未启用受监控的部署。极化间隔的默认值为5秒。要启用受监视的部署,必须将启用受监视目录部署的值设置为“ true ”。执行以下步骤以从控制台启用它。
点击 应用程序>全局部署设置 然后 选择监控目录以自动部署应用程序以启用受监控的部署。
启动wsadmin
设置单元格上下文值
myCell = AdminConfig.getid('/ Cell:WASCell01 /')
monitorDirectory = AdminConfig.showAttribute(myCell,“monitoredDirectoryDeployment”)
AdminConfig.modify(monitorDirectory,[['monitoredDirectory',“/ NewPath / Which / YouWantToUse /”]])
<强> AdminConfig.save()强>
它需要在网络部署环境中重新启动Deployment Manager。对于独立环境,您必须重新启动服务器。