4 Replies Latest reply on Feb 10, 2009 10:04 AM by asoldano

    Webservice Timeout

    redcar

      Hallo,

      I want to enlarge the JBoss-WS timeout for my application.
      I use the WS from JBoss 5.0.0 GA
      After getting the port with:

       org.opentrafficsystems.ots2.OTS2WebServices m_port = service.getOTS2WebSoapServices();
      


      I set the timeout:

       ((BindingProvider) m_port).getRequestContext().put("org.jboss.ws.timeout", 1000 * 60 * 30);
      


      But after 5 Minutes I get this exception:

      javax.xml.ws.soap.SOAPFaultException: [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] [com.arjuna.ats.internal.jta.transaction.arjunacore.inactive] The transaction is not active!
       at com.sun.xml.internal.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:171)
       at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:94)
       at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:240)
       at com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
       at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
       at $Proxy32.tConnect(Unknown Source)
      


      How can I enlarge the WS-Timeout?

      Thanks,
      Werner


        • 1. Re: Webservice Timeout
          redcar

          Good morning,

          for my project I need to enlarge the server timeout.
          Is it possible to enlarge it, and where can I do this?

          Thanks,
          Werner

          • 2. Re: Webservice Timeout
            ropalka

            It's JBossWeb (Tomcat) server configuration file you're looking for.

            • 3. Re: Webservice Timeout
              redcar

              Hallo Richard,

              the Tomcat timeout it was not.
              Because of the message that the transaction is not active, I have increased
              the transaction timeout in the file:
              server/.../deploy/transaction-jboss-beans.xml

              I don't know if I can have disadvantages with this setting.
              The new value is 300000.

              • 4. Re: Webservice Timeout
                asoldano

                Yes, you need to configure the transaction timeout on the server as you did. Consider that value is in seconds, thus 300000 might be really too much. Perhaps you can better estimate the maximum tx length you might expect and set that value accordingly.
                Also consider taking a look at the transaction project forum for this kind of issues.