I need a JACL script by which I can just put an EAR file on a particular folder where the deployment manager is intsalled. When I run this script it should update this ear file and restart all the instances where this information is installed. If the WAR file is not already installed then it should give a message and do nothing. Also I have multiple clusters so i need to make sure that the EAR file being updated is updated on the correct cluster. Once updated it should also synchronize the changes to all the nodes.
I would really appreciate if anyone has built in script for this. Any help will be greatly appreciated