In most cases, if you don't want to use pooling/distributing between several fastCGI servers, you just have to declare the fastCGI Servlet and declare the address of the external fastCGI program.
<servlet>
<servlet-name>FastCGI</servlet-name>
<servlet-class>org.jfastcgi.servlet.FastCGIServlet</servlet-class>
<init-param>
<param-name>server-address</param-name>
<param-value>localhost:6666</param-value>
</init-param>
</servlet>If the other server is listening to ipv6, specify the server address like this:
<servlet>
<servlet-name>FastCGI</servlet-name>
<servlet-class>org.jfastcgi.servlet.FastCGIServlet</servlet-class>
<init-param>
<param-name>server-address</param-name>
<param-value>[::1]:6666</param-value>
</init-param>
</servlet>