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 he...@apache.org on 2005/06/30 12:55:15 UTC

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

Author: hemapani
Date: Thu Jun 30 03:55:13 2005
New Revision: 202521

URL: http://svn.apache.org/viewcvs?rev=202521&view=rev
Log:
fix tcp server

Modified:
    webservices/axis/trunk/java/modules/core/src/org/apache/axis/transport/tcp/TCPServer.java

Modified: webservices/axis/trunk/java/modules/core/src/org/apache/axis/transport/tcp/TCPServer.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/modules/core/src/org/apache/axis/transport/tcp/TCPServer.java?rev=202521&r1=202520&r2=202521&view=diff
==============================================================================
--- webservices/axis/trunk/java/modules/core/src/org/apache/axis/transport/tcp/TCPServer.java (original)
+++ webservices/axis/trunk/java/modules/core/src/org/apache/axis/transport/tcp/TCPServer.java Thu Jun 30 03:55:13 2005
@@ -133,11 +133,12 @@
     public static void main(String[] args) throws AxisFault, NumberFormatException {
         if (args.length != 2) {
             System.out.println("TCPServer repositoryLocation port");
+        }else{
+            TCPServer tcpServer = new TCPServer(Integer.parseInt(args[1]), args[0]);
+            System.out.println("[Axis2] Using the Repository " + new File(args[0]).getAbsolutePath());
+            System.out.println("[Axis2] Starting the TCP Server on port " + args[1]);
+            tcpServer.start();
         }
-        TCPServer tcpServer = new TCPServer(Integer.parseInt(args[1]), args[0]);
-        System.out.println("[Axis2] Using the Repository " + new File(args[1]).getAbsolutePath());
-        System.out.println("[Axis2] Starting the TCP Server on port " + args[0]);
-        tcpServer.start();
     }
 
 }