cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Polar Humenn <>
Subject CXF-706 Patch
Date Thu, 07 Jun 2007 03:48:45 GMT


I have a patch that I attached to JIRA CXF-706.
I'd appreciate if somebody could apply it.
It doesn't have any binary files so, its application should be okay.

This patch gets rid of the Deprecated SSL stuff, allows to
you to use multiple Http Destinations on the same HTTPS port.

This required some refactoring of the Spring configuration, so if you were
   <http:destination name"...">
before you need to revamp.

You now configure the "port" for SSL/TLS, no longer the destination. 
This is done by
configuring arguments to the Jetty Http Server Engine Factory for a 
particular bus, like
  <httpj:engine-factory bus="cxf">
        <httpj:engine port="2999">
                <sec:keyManagers keyPassword="pass">
                    <sec:keyStore type="jks" password="pass" 
                    <sec:keyStore type="jks" password="pass" 
                <sec:clientAuthentication want="true" required="true"/>
            <httpj:threadingParameters minThreads="10" maxThreads="20"/>

  <bean id="cxf" class="org.apache.cxf.bus.CXFBusImpl"/>


For programmatic configuration you pull the JettyHTTPServerEngineFactory 
off of the bus
as an extension, and

         factory.setTLSServerParametersForPort(port, tlsServerParameters);

before the Server Engine is created. Setting this after the engine is 
created for that
port will have no effect.

If you were using a "special" configurer that looked for the 
implemenation name
of a JettyHTTPServerEngine.port#, and tried to configurer it 
programatically, that no longer
works as the JettyHTTPServerEngine is not longer "configurable" by 
anything but its factory.
You must configure the factory.


View raw message