2

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?

Gas
  • 17,601
  • 4
  • 46
  • 93
user3442562
  • 337
  • 1
  • 6
  • 16
  • 1
    What is your problem, you have to explain it a bit more. Which version are you using? You want to deploy via admin console (easiest) or Jython script? – Gas Oct 15 '14 at 18:43
  • i have to preapre a jython script for ear deployment , which of the points have to take consideration for this process, (i am using WAS8.5 verstion). – user3442562 Oct 16 '14 at 05:51

1 Answers1

3

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:

Gas
  • 17,601
  • 4
  • 46
  • 93