gdaniels    02/03/13 12:07:06

  Modified:    java/src/org/apache/axis/wsdl WSDL2Java.java
  Log:
  Remove debugging timeout value of -1, clean up timeout handling
  code a bit (use the native join() method).
  
  Revision  Changes    Path
  1.14      +6 -11     xml-axis/java/src/org/apache/axis/wsdl/WSDL2Java.java
  
  Index: WSDL2Java.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/wsdl/WSDL2Java.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- WSDL2Java.java    13 Mar 2002 19:50:58 -0000      1.13
  +++ WSDL2Java.java    13 Mar 2002 20:07:06 -0000      1.14
  @@ -114,8 +114,7 @@
       // The emitter framework Emitter class.
       private Emitter emitter;
       // Timeout, in milliseconds, to let the Emitter do its work
  -    private long timeoutms = -1; // 45 sec default
  -    //private long timeoutms = 45000; // 45 sec default
  +    private long timeoutms = 45000; // 45 sec default
   
       JavaWriterFactory writerFactory = null;
   
  @@ -436,15 +435,11 @@
                   wsdlThread.join();
           } catch (InterruptedException e) {
           }
  -
  -//        while (!runnable.isDone()) {
  -//            // Check at one-second intervals
  -//            Thread.sleep(1000);
  -//            if (new Date().getTime() > timeout) {
  -//                wsdlThread.interrupt();
  -//                throw new Exception(JavaUtils.getMessage("timedOut"));
  -//            }
  -//        }
  +        
  +        if (wsdlThread.isAlive()) {
  +            wsdlThread.interrupt();
  +            throw new Exception(JavaUtils.getMessage("timedOut"));
  +        }
   
           if (runnable.getFailure() != null) {
               throw runnable.getFailure();
  
  
  


Reply via email to