axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gdani...@apache.org
Subject cvs commit: xml-axis/java/samples/transport FileReader.java
Date Thu, 14 Jun 2001 21:20:04 GMT
gdaniels    01/06/14 14:20:04

  Modified:    java/samples/transport FileReader.java
  Log:
  Don't make response until we've actually processed the request.
  
  Revision  Changes    Path
  1.9       +4 -4      xml-axis/java/samples/transport/FileReader.java
  
  Index: FileReader.java
  ===================================================================
  RCS file: /home/cvs/xml-axis/java/samples/transport/FileReader.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- FileReader.java	2001/06/14 01:28:35	1.8
  +++ FileReader.java	2001/06/14 21:20:03	1.9
  @@ -90,9 +90,7 @@
   
           Thread.sleep( 100 );   // let the other side finish writing
           FileInputStream fis = new FileInputStream( file );
  -        FileOutputStream fos = new FileOutputStream( "xml" + nextNum + ".res" );
  -        nextNum++ ;
  -
  +        
           Message msg = new Message( fis );
           MessageContext  msgContext = new MessageContext(server);
           msgContext.setRequestMessage( msg );
  @@ -112,8 +110,10 @@
           } catch (Exception e) {
               msg = new Message(new AxisFault(e.toString()));
           }
  -
  +        
           buf = (byte[]) msg.getAsBytes();
  +        FileOutputStream fos = new FileOutputStream( "xml" + nextNum + ".res" );
  +        nextNum++ ;
           fos.write( buf );
           fos.close();
   
  
  
  

Mime
View raw message