I recently migrated my web services from Axis to CXF (2.1). It appears that while Axis needed the “axis.socketSecureFactory” set, CXF grabs the default. How do I set the default SocketFactory in Java to my own implementation (such as a property)?
What I am not looking to do is to set the default SocketFactory properties like setting the property for my truststore, keystore and passwords.
According to the OpenJDK7 source code for
javax.net.SocketFactory, the Sun JVM is hard coded to return ajavax.net.DefaultSocketFactoryforgetDefault();Edit: However, the default SSLSocketFactory can be set by the security property
ssl.SocketFactory.provider