Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to connect to remote server and start/stop the Tomcat that's running on that particular server using Ant?
- 1: connect to a remote server maybe via host: ip , port: 8181
- 2: stop Tomcat that's running on that server
- 3: deploy a .war file
- 4: restart tomcat
- <jmx:invoke
- name="Catalina:type=Manager,path=/servlets-examples,host=localhost"
- operation="stop"/>
- <sshexec host="somehost"
- username="dude"
- password="yo"
- command="/etc/init.d/tomcat restart"/>
Add Comment
Please, Sign In to add comment