axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <dava...@gmail.com>
Subject NetworkUtils from Axis1 (Re: svn commit: r290388 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/tcp/TCPServer.java)
Date Tue, 20 Sep 2005 12:53:52 GMT
Deepal,

Could you please pick up NetworkUtils from Axis1? 127.0.0.1 is going
to fail on systems with IPv6 as default.

thanks,
dims

On 9/20/05, deepal@apache.org <deepal@apache.org> wrote:
> Author: deepal
> Date: Tue Sep 20 00:41:36 2005
> New Revision: 290388
> 
> URL: http://svn.apache.org/viewcvs?rev=290388&view=rev
> Log:
> revert changes
> 
> Modified:
>     webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/tcp/TCPServer.java
> 
> Modified: webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/tcp/TCPServer.java
> URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/tcp/TCPServer.java?rev=290388&r1=290387&r2=290388&view=diff
> ==============================================================================
> --- webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/tcp/TCPServer.java
(original)
> +++ webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/tcp/TCPServer.java
Tue Sep 20 00:41:36 2005
> @@ -110,13 +110,8 @@
>       * @see org.apache.axis2.transport.TransportListener#replyToEPR(java.lang.String)
>       */
>      public EndpointReference replyToEPR(String serviceName) throws AxisFault {
> -        String hostAddress;
> -        try {
> -            hostAddress = InetAddress.getLocalHost().getHostAddress();
> -        } catch (UnknownHostException e) {
> -            throw new AxisFault(e);
> -        }
> -        return new EndpointReference("tcp://"+ hostAddress + (serversocket.getLocalPort())
+
> +        //todo this has to fix
> +        return new EndpointReference("tcp://127.0.0.1:" + (serversocket.getLocalPort())
+
>                  "/axis/services/" +
>                  serviceName);
>      }
> 
> 
> 


-- 
Davanum Srinivas : http://wso2.com/ - Oxygenating The Web Service Platform

Mime
View raw message