http://www.wikio.fr WebSphere And Tivoli Tricks: Basic Jython script to install an ear file

Friday, May 20, 2011

Basic Jython script to install an ear file

The script below will install on a local server. If Administrative security is on, then it will prompt for authentication.

#install the application
AdminApp.install('D:/workspace/java/jsfks/deploy/jsfks.ear', '[ -nopreCompileJSPs -distributeApp -nouseMetaDataFromBinary -nodeployejb -appname jsfks_test_ear -createMBeansForResources -noreloadEnabled -nodeployws -validateinstall warn -noprocessEmbeddedConfig -filepermission .*\.dll=755#.*\.so=755#.*\.a=755#.*\.sl=755 -noallowDispatchRemoteInclude -noallowServiceRemoteInclude]' );
#save
AdminConfig.save();

No comments:

Post a Comment