- 
        1. Re: AutoDeploy ant task in JBOSS6.0 Not workingsudhir23 Sep 8, 2011 5:54 PM (in response to sudhir23)i got it working in my dev environment, i will post the steps once i validate in my test env.. 
- 
        2. Re: AutoDeploy ant task in JBOSS6.0 Not workingsudhir23 Sep 27, 2011 11:35 AM (in response to sudhir23)hi all i forgot to post the autodeploy steps, i was able to autodeploy in test env from another machine. define the below properties in your properties file: JBOSS_HOME=C:/jboss-6.0.0 JBOSS_SERVER=localhost or your server name JBOSS_JMX_PORT=1090 JBOSS_USER=admin JBOSS_PASSWD=admin define the below targets in your ant script. and call ant deploy. <target name="undeploy"> <jmx:open host="${JBOSS_SERVER}" port="${JBOSS_JMX_PORT}" username="${JBOSS_USER}" password="${JBOSS_PASSWD}" /> <jmx:invoke name="jboss.system:service=MainDeployer" operation="undeploy"> <arg type="java.lang.String" value="vfs:///${jboss.dir}/deploy/Application.ear"/> </jmx:invoke> </target> <target name="copy-ear" depends="undeploy"> <copy file="${app.ear.dir}/Application.ear" todir="${jboss.ear.dir}"/> </target> <target name="deploy" depends="copy-ear"> <jmx:open host="${JBOSS_SERVER}" port="${JBOSS_JMX_PORT}" username="${JBOSS_USER}" password="${JBOSS_PASSWD}" /> <jmx:invoke name="jboss.system:service=MainDeployer" operation="deploy"> <arg type="java.lang.String" value="vfs:///${jboss.dir}/deploy/Application.ear"/> </jmx:invoke> </target> this task reduced our time in autodeploying the application manually. 
