Hi, for such a case i try to avoid to depend on any convention as much as possible.
I'd personnaly use a web filter to store it from the request. That's said you can probably configure tomcat executor service with a custom name for each connector to get what you want *Romain Manni-Bucau* *Twitter: @rmannibucau* *Blog: http://rmannibucau.wordpress.com* 2012/9/19 Luca Merolla <[email protected]> > Hi, > > how can I get the client ip address from Thread in Tomcat? > > In JBoss 7.1.1 I was using this piece of code > > Thread.currentThread().getName(); > > and the generated output was: > > jboss - http-localhost.localdomain-127.0.0.1-8080-1 > tomee - http-bio-8080-exec-1 > > I want to get the IP address in the format of 127.0.0.1. > > Thanks in advance, > Luca >
