Hi,
     
     We've recently moved an ND3/UNIX project over to ND4/NT and are 
     experiencing some problems. 
     
     In our project we open a call to an external URL. Under ND3/UNIX this 
     task took less than 1 second. Since we've moved to ND4/NT it now takes 
     14+ seconds (see code below)
     
     My concern is that I don't know if it's an ND4 issue or NT issue. If 
     anybody has seen anything similar I'd really appreciate any 
     suggestions.
     
     Regards,
        Damian O'Connor
        Senior Software Development Engineer
        Hewlett Packard International Bank
     
     *** Code Snippet ***
     
     This code is executed on it's own thread.
     
     class CHpTimedURLConnection implements Runnable
     ..
     ..
     private CSpStringInputStream            _stream;
     ..
     ..
     public void run()
     {
     
      String        requestText = null;
      URL           theURL = null;
      URLConnection theConnection = null;
      PrintWriter   requestCommand;
     
      _stream = null;
     
      try
      {
       theURL = new URL(...use our URL );
       theConnection = theURL.openConnection( );
                   
       // configurate the URL connection as a output
       theConnection.setDoOutput( true );
        
       ******** Line below is causing the problem ********    
       // use a PintWriter object to output the request
       requestCommand = new PrintWriter( theConnection.getOutputStream());
        
       // Set request string 
       requestText =  .....stuff                  
     
       // send the request through the connection
       requestCommand.print( requestText );
        
       // close the printWriter object
       requestCommand.close( );
        
       _stream = new CSpStringInputStream( theConnection.getInputStream());
      }
      catch( Exception e )
      {
       ....Do exception stuff
      }
     }

_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to