I have a REST- Server here using JERSEY. I must log the IP (better the DNS) of the calling client.
Can somebody point a direction which injection annotations to use ? >
In case you use Grizzly-Jersey combo, thats the way to do it:
@Context private java.lang.ThreadLocal grizzlyRequest;