使用jython脚本在webshp 8.5.5上部署多个ear

时间:2017-02-21 16:22:17

标签: websphere jython ear

使用以下 jython 脚本,我可以在 8.5.5

中部署单耳
AdminApp.install('/tmp/ear/test.ear', '[ -nopreCompileJSPs -distributeApp -nouseMetaDataFromBinary -appname \"xyzApplication\" -createMBeansForResources -noreloadEnabled -nodeployws -validateinstall warn -noprocessEmbeddedConfig -filepermission .*\.dll=755#.*\.so=755#.*\.a=755#.*\.sl=755 -noallowDispatchRemoteInclude -noallowServiceRemoteInclude -asyncRequestDispatchType DISABLED -nouseAutoLink -MapModulesToServers [[ .* .*,WEB-INF/web.xml WebSphere:cell=xyzcell,cluster=xyzcluster ]] -MapRolesToUsers [[ ExcludeAuth AppDeploymentOption.Yes AppDeploymentOption.No \"\" \"\" AppDeploymentOption.No \"\" \"\" ][ \"All Role\" AppDeploymentOption.No AppDeploymentOption.No \"\" \"\" AppDeploymentOption.Yes \"\" \"\" ]] -MapWebModToVH [[ .* .*,WEB-INF/web.xml default_host ]]]' )

现在我在/ tmp / ear /目录中有两个ear文件,我想同时部署两个,所以我可以使用正则表达式代替 test.ear ,如下面的 * .ear

AdminApp.install('/tmp/ear/*.ear', '[ -nopreCompileJSPs -distributeApp -nouseMetaDataFromBinary -appname \"xyzApplication\" -createMBeansForResources -noreloadEnabled -nodeployws -validateinstall warn -noprocessEmbeddedConfig -filepermission .*\.dll=755#.*\.so=755#.*\.a=755#.*\.sl=755 -noallowDispatchRemoteInclude -noallowServiceRemoteInclude -asyncRequestDispatchType DISABLED -nouseAutoLink -MapModulesToServers [[ .* .*,WEB-INF/web.xml WebSphere:cell=xyzcell,cluster=xyzcluster ]] -MapRolesToUsers [[ ExcludeAuth AppDeploymentOption.Yes AppDeploymentOption.No \"\" \"\" AppDeploymentOption.No \"\" \"\" ][ \"All Role\" AppDeploymentOption.No AppDeploymentOption.No \"\" \"\" AppDeploymentOption.Yes \"\" \"\" ]] -MapWebModToVH [[ .* .*,WEB-INF/web.xml default_host ]]]' )

我可以在xyzApplication中部署两个耳朵吗?或者应该有两种不同的应用。

0 个答案:

没有答案