使用以下 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中部署两个耳朵吗?或者应该有两种不同的应用。