Hey everybody!
I'd like to be able to remote-deploy a war file to out jboss-server, which is running on a remote system. I already managed to do the through the jmx-console by first ftping the WAR over there and then telling the MainDeployer to deploy "file:/name".
Now I found this nice little ant-task that should also be able to do it. But I always receive a javax.naming.CommunicationException there. I guess cause I don't really know how to handle the thing. Can somebody point me to the right place or give me a quick advise?
<target name="jmx_deploy" description="JMX Remote deploy test"> <taskdef name="jmx" classname="org.jboss.ant.JMX"/> <jmx adapterName="jmx:deazunix15.az.bertelsmann.de:rmi"> <!-- define classes --> <invoke target="jboss.system:service=MainDeployer" operation="deploy"> <parameter type="java.lang.String" arg="file:/DAZ/DIASMiner.war"/> </invoke> </jmx> </target>