I figured out the way around the problem. In my code, where I wanted to set the property, I use: serviceLocator.getEngine().setOption(USE_CERT_PROPERTY, new Boolean(true));
where getEngine returns the used AxisEngine. Then in the factory socket, I can:
Boolean useSMS = (Boolean) MessageContext.getCurrentContext().getProperty(OtherClass.USE_CERT_PROPERTY);
I could set the object to anything, maybe I will go with the name of the certificate I needed. Hope this helps someone.
Adam
source share