tomcat7 - How to check inside Java code if the server is running in localhost -
i have need check @ runtime if server running in http://localhost searching on net haven't found solution. advice?
thank
we have running setup following configuration being done:
- in
catalina.properties, defineactive_profile=prodproduction,active_profile=stagestage oractive_profile=devdeveloper machine - have different connection properties files matching profile key -
jdbc_prod.properties,jdbc_stage.properties,jdbc_dev.properties - refer connection properties
jdbc_${active_profile}.propertiesin configuration.
Comments
Post a Comment