• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Deploying EAR on WAS using ANT

 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to automate the process of deploying my EAR on WAS using ANT. Any tasks to do so.
ANT 1.6.2 and WAS 5.1
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ant covers the basics you'll need - those universal tasks like copying, jaring, compiling etc. But WAS being WAS you will need to use the extra taskdefs IBM supply with WAS. Check the docs in the InfoCenter if you haven't already. You'll have to learn about WSAdmin too, if you don't already know how to use it.
 
Pratik Lohia
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I already get my EAR using ANT. But thereafter I deploy the EAR on WAS manually using the WAS AdminConsole. This is wat I need to automate
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I know that there is a maven plugin which let you manage was 5.1
So if decide to migrate to maven
http://maven-plugins.sourceforge.net/maven-was5-plugin/properties.html
 
author & internet detective
Posts: 41502
881
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pratik,
I'm not sure if IBM offers a custom Ant task for this or not. If not, you could automate deployment with a jacl/wsadmin script and have Ant call that.
 
Jeanne Boyarsky
author & internet detective
Posts: 41502
881
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pratik and Franck,
When you get a chance, can you edit your display name so it isn't in all caps.

On the Internet, all caps is viewed as shouting - certainly not what you are intending!

Thanks,
Jeanne
 
Pratik Lohia
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guess I am shouting no more...
 
Jeanne Boyarsky
author & internet detective
Posts: 41502
881
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Pratik
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
IBM provides a "wsInstallApp" task.
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could also write a jacl script to install the ear and then have ant call a batch or shell script that executes the jacl script. It sounds like a lot of work but I find it better than the ant task. Plus you will have to go this route if you ever plan on using WAS ND and want an automated process to deploy your ear. You could also use Jython instead of jacl.
reply
    Bookmark Topic Watch Topic
  • New Topic