I am developing spring-boot application where my backend-side is connecting to database using ssh tunneling (this part is required and cannot be changed). I have three ways to deploy application:
- creating jar (with embeded tomcat and ssh tunnel inside application)
- creating war and deploy on standalone tomcat (with ssh tunnel outside application as linux service)
- creating war and deploy on standalone tomcat (with ssh tunnel inside application), with this option is connected problem I cannot resolve https://stackoverflow.com/questions/49471387/spring-boot-tomcat-ssh-connection-link-failure
Which is best choice and why?