*
The moose likes Web Services and the fly likes Issue overriding AxisProperties.setProperty() setting for multiple requests Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Issue overriding AxisProperties.setProperty() setting for multiple requests" Watch "Issue overriding AxisProperties.setProperty() setting for multiple requests" New topic
Author

Issue overriding AxisProperties.setProperty() setting for multiple requests

Viresh Suri
Greenhorn

Joined: Jul 21, 2008
Posts: 1
Hi,

Axis version : 1.3, 1.4

We have a requirement wherein we need to incorporate different SocketFactories (secure and non-secure) for multiple requests. Each request needs to set AxisProperties.setProperty("axis.socketSecureFactory", "<socketFactory>")

The problem observed here is that the initial setting of this property is not being overridden in the subsequent requests if those requests need to set a different value in this property. The consequences are as follows :

If a request 1 sets this property to �SunFakeTrustSocketFactory� and then a 2nd request is fired which needs to set this property to �CustomJSSESocketFactory� then the setting done initially, i.e. �SunFakeTrustSocketFactory� does not get overridden by the second setting.

It seems that this setting is getting persisted somewhere and its not easy to override it. Could you help me understand how we can override this? Thanks in advance !!

Viresh Suri
jteoee guy here
Greenhorn

Joined: Jul 19, 2008
Posts: 1
Have you found the solution to this yet?

~J
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61103
    
  66

"jteoee guy here", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Axis Geek
Greenhorn

Joined: Jul 10, 2012
Posts: 2
What is the solution to Viresh's question? Any update? We have a similar issue with Axis 1.4 and cannot migrate to a higher version. Is there a work-around that, we can implement?
 
Consider Paul's rocket mass heater.
 
subject: Issue overriding AxisProperties.setProperty() setting for multiple requests