You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2003/07/10 17:18:07 UTC

cvs commit: xml-axis/java/src/org/apache/axis/transport/http SimpleAxisServer.java

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) {}
       }
   
       /**
  
  
  

Re: cvs commit: xml-axis/java/src/org/apache/axis/transport/http SimpleAxisServer.java

Posted by Davanum Srinivas <di...@yahoo.com>.
I'll let Eric cut-n-paste this to a better location, since i can't test it anyways....

thanks,
dims

--- Davanum Srinivas <di...@yahoo.com> wrote:
> OOPS!!! This might not work. need to do this before bind'ing.
> 
> -- dims
> 
> --- dims@apache.org 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


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

__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

Re: cvs commit: xml-axis/java/src/org/apache/axis/transport/http SimpleAxisServer.java

Posted by Davanum Srinivas <di...@yahoo.com>.
OOPS!!! This might not work. need to do this before bind'ing.

-- dims

--- dims@apache.org 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