bounce multiple servers using ant

Posted by Angrezy on Stack Overflow See other posts from Stack Overflow or by Angrezy
Published on 2009-12-16T21:21:28Z Indexed on 2010/05/30 10:02 UTC
Read the original article Hit count: 175

Filed under:
|
|
|
|

Hi All, This is restart target code which is defined in build.xml


target name="restart"

propertycopy name="remote.host" from="deploy.${target.env}.host.${remote.id}"

propertycopy name="remote.port" from="deploy.${target.env}.port.${remote.id}"

sshexec trust="true"
	 host="${remote.host}"
	 port="${remote.port}"
	 username="${scm.user}"
	 keyfile="${scm.user.key}"
	 command="sudo /usr/local/bin/bounce_jboss"

target


server information is defined in build.properties.

The above code is working fine, but the restarting process is very late bcas its stopping-starting server one and later its stopping-starting another server,

Is there a way where i can restart both servers parallely with a time frame of 45 seconds.

© Stack Overflow or respective owner

Related posts about ant

Related posts about jboss