#!/bin/sh

for ((i=0; i < 500; i++))
do
	#Deploy
	cp -pr /home/mmillson/cases/167533/SampleApp.ear /home/mmillson/jems/bin/jboss-eap-4.3/jboss-as/server/167533/deploy/
	# sleep 10 seconds
	sleep 10
	# Exercise Struts controller
	wget -a wget.log http://localhost:8080/XMPVXE0Partion/VXE1_ContentTestService/Welcome.do
	# Undeploy
	rm -fR /home/mmillson/jems/bin/jboss-eap-4.3/jboss-as/server/167533/deploy/SampleApp.ear
	# Wait 10 seconds
	sleep 10
done
