user3442562
user3442562

Reputation: 331

How to deploy EAR in WebSphere Application Server using Jython script?

How to deploy application in WebSphere Application Server using Jython script? What is happening during ear file deployment?. Could you please explain it step by step?

Upvotes: 2

Views: 10271

Answers (1)

Gas
Gas

Reputation: 18020

The shortest form of the script would be:

AdminApp.install('fullpath/yourApp.ear', ['-MapWebModToVH', [['.*', '.*', 'default_host']]])
AdminConfig.save()

During the process application is validated, uploaded to the server and expanded (by default in the installeApps folder. AdminConfig.save() commits the changes done by the script. If you want just to test the script, you can call AdminConfig.reset() to discard any changes.

See documentation for all the details and options:

Upvotes: 3

Related Questions