0 Replies Latest reply on Aug 12, 2009 12:20 PM by Hung Tang

    Is it possible to set timeout on the server instead of clien

    Hung Tang Apprentice

      Hi everyone,

      I searched the forums here and I noticed that other developers are inserting the kind of code:

       BindingProvider provider = (BindingProvider) somePort;
       provider.getRequestContext().put("org.jboss.ws.timeout", 120);
      

      to configure the timeout for the client.

      But is there a way to set the default timeout setting on the JBossWS side so that *any* potential web service client(outside of java) can assume a default timeout setting?

      I'm trying to implement a long-running-web-service that could take a long time to finish (possibly 10 minutes?) and I would like to hold that connection long enough so that a response will get back the client.