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

    Webservice Timeout

    red Car Newbie

      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