axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Clayton (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Updated: (AXIS-2353) tcpmon patch to enable SSL support and allow default settings
Date Wed, 21 Dec 2005 23:26:31 GMT
     [ http://issues.apache.org/jira/browse/AXIS-2353?page=all ]

Tony Clayton updated AXIS-2353:
-------------------------------

    Attachment: axis-1_3.tcpmon.patch

Axis-1_3 Patch for tcpmon SSL (SocketFactory) support and default listener settings capability

> tcpmon patch to enable SSL support and allow default settings
> -------------------------------------------------------------
>
>          Key: AXIS-2353
>          URL: http://issues.apache.org/jira/browse/AXIS-2353
>      Project: Apache Axis
>         Type: Improvement
>     Versions: 1.3
>     Reporter: Tony Clayton
>     Priority: Minor
>  Attachments: axis-1_3.tcpmon.patch
>
> I was using tcpmon in a project, but wanted the ability to change it's behaviour in the
following ways at runtime:
> 1) change the SocketFactory to my own (to provide outbound SSL support)
> 2) change the default "XML Format" and "Numeric" checkboxes to be checked when a listener
is created.
> I found that the current architecture didn't allow me to do these things, so I added
these capabilities.  
> I will attach my patch.
> Here's a sample class that makes use of these new capabilities and uses SSL:
> import javax.net.ssl.SSLSocketFactory;
> import org.apache.axis.utils.tcpmon;
> public class MySoapMonitor  {
>     public static void main(String[] args) {
> 	/* Use our SSL connection for outgoing sockets */
> 	String truststore = System.getProperty("my.trust.store.path");
> 	System.setProperty("javax.net.ssl.trustStore", truststore);
> 	MyTrustManager.initialize();
>         // use SSL for outbound only
> 	tcpmon.setSocketFactory(SSLSocketFactory.getDefault());
> 	tcpmon.setDefaultXmlFormatChecked(true);
> 	tcpmon.setDefaultNumericChecked(true);
> 	tcpmon.main(args);
>     }
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message