Re: AJP connector address vs. IPv4/6

2015-01-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Andy, On 1/28/15 3:21 PM, Wang, Andy wrote: On Fri, 2015-01-23 at 16:05 -0500, Christopher Schultz wrote: If only one address per Connector can be specified, can you not just use 2 Connectors, one for each ? They should not conflict.

Re: AJP connector address vs. IPv4/6

2015-01-28 Thread Wang, Andy
On Fri, 2015-01-23 at 16:05 -0500, Christopher Schultz wrote: If only one address per Connector can be specified, can you not just use 2 Connectors, one for each ? They should not conflict. That should definitely work (address=127.0.0.1 and address=::) but one connector might be nice.

RE: AJP connector address vs. IPv4/6

2015-01-28 Thread Caldarale, Charles R
From: Wang, Andy [mailto:aw...@ptc.com] Subject: Re: AJP connector address vs. IPv4/6 The two connectors idea is an interesting one, but that has the unfortunate aspect of now maintaining 2 separate thread pools Not true - use an Executor: http://tomcat.apache.org/tomcat-8.0-doc/config

Re: AJP connector address vs. IPv4/6

2015-01-24 Thread Terence M. Bandoian
On 1/23/2015 3:05 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 1/23/15 3:35 PM, André Warnier wrote: Jess Holle wrote: It seems that java.net.InetAddress.getLoopbackAddress().getHostAddress() should give the right answer -- if one is running with

AJP connector address vs. IPv4/6

2015-01-23 Thread Jess Holle
I'd like to set the address attribute on the AJP connector when deploying Tomcat to only allow loopback connections. But I want to do so in a general way that works for: * IPv4 * IPv4 + IPv6 mixed/dual stack * IPv6 (pure) Is there any such option? The documentation speaks of setting

Re: AJP connector address vs. IPv4/6

2015-01-23 Thread Jess Holle
It seems that java.net.InetAddress.getLoopbackAddress().getHostAddress() should give the right answer -- if one is running with Java 7. That said, is there a value that can be used for AJP's address attribute that simply does the right thing here? On 1/23/2015 1:38 PM, Jess Holle wrote: I'd

Re: AJP connector address vs. IPv4/6

2015-01-23 Thread André Warnier
Jess Holle wrote: It seems that java.net.InetAddress.getLoopbackAddress().getHostAddress() should give the right answer -- if one is running with Java 7. That said, is there a value that can be used for AJP's address attribute that simply does the right thing here? On 1/23/2015 1:38 PM,

Re: AJP connector address vs. IPv4/6

2015-01-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 1/23/15 3:35 PM, André Warnier wrote: Jess Holle wrote: It seems that java.net.InetAddress.getLoopbackAddress().getHostAddress() should give the right answer -- if one is running with Java 7. That said, is there a value that can

Re: AJP connector address vs. IPv4/6

2015-01-23 Thread Jess Holle
We use an Ant script to configure Tomcat during installation, so I ended up just using a groovy task to set the address used to InetAddress.getLoopbackAddress().getHostAddress() by default. On 1/23/2015 3:05 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256