I have an application where for some environment related reasons I need to pass my own securesocketfactory. I went through Axis 1.4 documentation . Based on this I tried setting my value in multiple ways. All listed below.
System.setProperty("org.apache.axis.components.net.SocketFactory", CustomSocketFactory.class.toString());
System.setProperty("org.apache.axis.components.net.SecureSocketFactory",CustomSocketFactory.class.toString());
System.setProperty("axis.socketFactory",CustomSocketFactory.class.toString());
System.setProperty("axis.socketSecureFactory",CustomSocketFactory.class.toString());
AxisProperties.setProperty("axis.socketSecureFactory", CustomSocketFactory.class.toString());
AxisProperties.setProperty("axis.socketFactory", CustomSocketFactory.class.toString());
AxisProperties.setProperty("org.apache.axis.components.net.SecureSocketFactory", CustomSocketFactory.class.toString());
AxisProperties.setProperty("org.apache.axis.components.net.SocketFactory", CustomSocketFactory.class.toString());
I am doing this just before my Locator
class is instantiated. But in none of the case when the axis connectivity happened it used my socket factory.
Is there a way to pass my custom SocketFactory? Even if I can pass my custom KeytoreManager it would do the job.
Am at my wits end! The options I have tried like socketFactory might show that. Any help is much appreciated.
I found my mistake. I had to simply pass
System.setProperty("org.apache.axis.components.net.SocketFactory", "com.package.myclass");
System.setProperty("org.apache.axis.components.net.SecureSocketFactory","com.package.myclass");
I was passing the wrong value.
Thanks