"Anton Ushakov" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> For a webservices project we need to override the ServerSocketFactory
> used with a http connector, - we are implementing our own httpg using
> overriden Input/Output streams that do GSS-API authentication.
>
> It works fine when I do this in server.xml on tomcat-4.1.29
> <Connector
> className="org.apache.catalina.connector.http.HttpConnector"
> port="6688" scheme="httpg" secure="true">
> <Factory className="MyOwnServerSocketFactory" />
> </Connector>
>
> But I know that HttpConnector is deprecated in favor of CoyoteConnector,
> and the same configuration with the CoyoteConnector basically ignores
> the Factory setting, and just keeps using normal http.
>
Yes, the <Factory> element is deprecated for the CoyoteConnector.
> Question: how can we override the ServerSocketFactory for the
> CoyoteConnector?
>
You can set the
socketFactory="fully.qualified.name.of.MyOwnServerSocketFactory" attribute
on the <Connector> element. The catch is that you need to have:
public class MyOwnServerSocketFactory extends
org.apache.tomcat.util.net.ServerSocketFactory {
...
}
However, it should still give you enough to do what you want.
> thank you
> -anton
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]