I have spring-ws deployed in my server. There is some task every day which should write ip adress and the port of server where this application run. How I can get this information ? I try InetAddress but with no success. There is no port.
I have spring-ws deployed in my server. There is some task every day which
Share
Getting a hold of the servletRequest should be enough to put you on track to get the IP address.
Use this code in an interceptor defined on your ws. Now you can simply call
to get the IP.