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=prod
production,active_profile=stage
stage oractive_profile=dev
developer machine - have different connection properties files matching profile key -
jdbc_prod.properties
,jdbc_stage.properties
,jdbc_dev.properties
- refer connection properties
jdbc_${active_profile}.properties
in configuration.
Comments
Post a Comment