I have a web application that is about to go into production in my company, and I use url's like the following:
http://170.70.141.252:8080/sisalbm/admin/dashboard.jsp
Where I indicate the ip of my machine and the port of connection (Glassfish), however the server area of my company, tells me that it is bad practice the way in which I map my application and that I have to correct it, since they are going to mount my application in 2 servers in cluster, whose case could complicate the logic of my application.
Handled the following statement in Java, to map the routes:
private static final String servidor = "http://170.70.141.252:8085/";
What do I have to do to make the url's of my application dynamic, that is, not depend on the server on which it is mounted?