OOPS!!! This might not work. need to do this before bind'ing.

-- dims

--- [EMAIL PROTECTED] wrote:
> dims        2003/07/10 08:18:07
> 
>   Modified:    java/src/org/apache/axis/transport/http
>                         SimpleAxisServer.java
>   Log:
>   Help Eric with problems running all-tests on Mac OSX
>   
>   Revision  Changes    Path
>   1.79      +7 -0      
> xml-axis/java/src/org/apache/axis/transport/http/SimpleAxisServer.java
>   
>   Index: SimpleAxisServer.java
>   ===================================================================
>   RCS file: 
> /home/cvs/xml-axis/java/src/org/apache/axis/transport/http/SimpleAxisServer.java,v
>   retrieving revision 1.78
>   retrieving revision 1.79
>   diff -u -r1.78 -r1.79
>   --- SimpleAxisServer.java   22 Apr 2003 19:35:52 -0000      1.78
>   +++ SimpleAxisServer.java   10 Jul 2003 15:18:07 -0000      1.79
>   @@ -63,6 +63,7 @@
>    import org.apache.axis.utils.Options;
>    import org.apache.commons.logging.Log;
>    
>   +import java.lang.reflect.Method;
>    import java.net.MalformedURLException;
>    import java.net.ServerSocket;
>    import java.net.Socket;
>   @@ -194,6 +195,12 @@
>         */
>        public void setServerSocket(ServerSocket serverSocket) {
>            this.serverSocket = serverSocket;
>   +        try {
>   +            Class [] clazzParms = new Class[]{boolean.class};
>   +            Object[] parms = new Object[] {Boolean.TRUE};
>   +            Method m = this.serverSocket.getClass().getMethod("setReuseAddress", 
> clazzParms);
>   +            m.invoke(this.serverSocket, parms);
>   +        } catch (Exception e) {}
>        }
>    
>        /**
>   
>   
>   


=====
Davanum Srinivas - http://webservices.apache.org/~dims/

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

Reply via email to