Meaningless Drivel is fun!*
The moose likes Websphere and the fly likes ANT for building EAR files specific to WAS4.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Products » Websphere
Bookmark "ANT for building EAR files specific to WAS4.0" Watch "ANT for building EAR files specific to WAS4.0" New topic
Author

ANT for building EAR files specific to WAS4.0

Steve Granton
Ranch Hand

Joined: Jan 13, 2002
Posts: 200
Hi,
We are using ANT to build out application into an EAR file. As part of this we wish to automatically generate the .xmi files is there a general way create these? Has anyone called the AAT tool from ANT?
Cheers,
Steve
Mike Jones
Ranch Hand

Joined: Dec 12, 2001
Posts: 109
Steve,
They cover this pretty well in the WAS 4.0 Application Development Handbook.
http://publib-b.boulder.ibm.com/Redbooks.nsf/RedbookAbstracts/sg246134.html?OpenDocument
Based on what I read, you can't totally automate this. You can call AAT from ANT, but no way to call it without bringing up the tool. So the proposed solution is to have ANT scripts that call up the AAT tool when required (i.e. like the first time or when new deployment code needs to be generated. The point was once you have run thru AAT to generate files, you don't need to do it everytime).
Mike


<BR>
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
Actually things have changed since this redbook was written -- there's now a tool (I'm looking for the link now) called "preDeploy" that you can call from ANT to do a lot of the things that AAT does.
Kyle


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
Mike Jones
Ranch Hand

Joined: Dec 12, 2001
Posts: 109
Excellent. I assume it will work for AEs also.
Mike Jones
Ranch Hand

Joined: Dec 12, 2001
Posts: 109
http://www7b.boulder.ibm.com/wsdd/downloads/predeploy.html
I noticed that the tool isn't supported by IBM. Who does?
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3892
    
    5
That just means that if you have problems with it you can't open a PMR -- it's an "add-on" feature, not a product you pay for (thus we're giving it away for free).
Kyle
Steve Granton
Ranch Hand

Joined: Jan 13, 2002
Posts: 200
Hi,
I also found the following article that are quite useful:
http://ejbinfo.com/WebSphere/01/07/16/2341255.shtml
There are also utilties to migrate Weblogic and Sun RI binding files to the Websphere xmi files:
http://ejbinfo.com/WebSphere/01/07/20/1730224.shtml
The most upto date utilities can be found at:
http://ejbinfo.com/WebSphere/01/07/26/0542243.shtml
I've not used these yet! (I'm about to and I'll let you know how I get on)
Cheers,
Steve
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ANT for building EAR files specific to WAS4.0