p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

java_webservices thread: Reliability Problem (interop between java and .net)


Message #1 by "elise" <kea@m...> on Thu, 31 Oct 2002 12:28:32
i found the solution on the java side. i post it here, in case it could 
help someone else :

you must make a second just after the first one

========================================================
CODE : 

          result = conn.post(request);
          long end = System.currentTimeMillis();
          if (result.equals("") || result.equals("Exception "))
          {
                result = result + " : Failed -> Retry";
                Alog.logAction(result
                               + " ("
                               + (end - start)                          
+ "ms) );       
                start = System.currentTimeMillis();
                result = conn.post(request);
                end = System.currentTimeMillis();
          }


====================================================

  Return to Index