Guest User

Untitled

a guest
Sep 10th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. How to connect to remote server and start/stop the Tomcat that's running on that particular server using Ant?
  2. 1: connect to a remote server maybe via host: ip , port: 8181
  3. 2: stop Tomcat that's running on that server
  4. 3: deploy a .war file
  5. 4: restart tomcat
  6.  
  7. <jmx:invoke
  8. name="Catalina:type=Manager,path=/servlets-examples,host=localhost"
  9. operation="stop"/>
  10.  
  11. <sshexec host="somehost"
  12. username="dude"
  13. password="yo"
  14. command="/etc/init.d/tomcat restart"/>
Add Comment
Please, Sign In to add comment