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 de...@apache.org on 2005/09/20 09:41:39 UTC

svn commit: r290388 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/tcp/TCPServer.java

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);
     }



NetworkUtils from Axis1 (Re: svn commit: r290388 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/tcp/TCPServer.java)

Posted by Davanum Srinivas <da...@gmail.com>.
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 <de...@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

NetworkUtils from Axis1 (Re: svn commit: r290388 - /webservices/axis2/trunk/java/modules/core/src/org/apache/axis2/transport/tcp/TCPServer.java)

Posted by Davanum Srinivas <da...@gmail.com>.
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 <de...@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