I have written an
ant script to ftp an ear file to a remote server, and use telnet task to login and undeploy previous version, then deploy current version.
However our remote weblogic server is not stable, sometimes it doesn't respond when I try to deploy, or previous version deployed has a deploy name my script not expected.
Question:
1. how to see list of ear file deployed in weblogic so that I will know which one to undeploy before I deploy my ear file.
2. if I try to deploy, and the server doesn't respond, is there any way to send a failed notification email?
3. if the output for telnet is not expected, how to handle it? so far the sequence of the commands must follow the sequence specified in the script, so if anything not expected happen, the script will fail.