0 Replies Latest reply on Jan 9, 2006 5:01 PM by bglynn

    TransactionTimeout stateful session bean

    bglynn

      Hi,

      I have a stateful EJB that take longer then the default 5 minutes provided in the transaction timeout to run. On my previous version of jboss (4.0.2) I was able to extend this timeout in the jboss-service.xml file. I'm now currently running 4.0.3SP1, which from my understanding has moved the transaction timeout settings into the jta-service.xml file. I modified the same settings in the jta-service file, but its still timing out at 5 mins. If someone could help me extend the timeout for this transaction I would be very greatful. Thanks in advance.

      BTW, I know I shouldn't have a calculation that takes that long to run in a transaction. I'm working on that too.

      Here's the stack trace from the Client side:

      [java] java.rmi.UnmarshalException: Error unmarshaling return header; neste
      d exception is:
       [java] java.net.SocketException: Connection reset
       [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
      ll.java:203)
       [java] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
       [java] at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unkn
      own Source)
       [java] at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(
      JRMPInvokerProxy.java:119)
       [java] at org.jboss.invocation.InvokerInterceptor.invokeInvoker(Invoker
      Interceptor.java:227)
       [java] at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(Mar
      shallingInvokerInterceptor.java:37)
       [java] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInte
      rceptor.java:46)
       [java] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityIntercepto
      r.java:55)
       [java] at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(Statefu
      lSessionInterceptor.java:106)
       [java] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:8
      6)
       [java] at $Proxy1.calculateForecast(Unknown Source)
       [java] at com.mach.forecast.client.runClient.main(runClient.java:36)
       [java] Caused by: java.net.SocketException: Connection reset
       [java] at java.net.SocketInputStream.read(SocketInputStream.java:168)
       [java] at java.io.BufferedInputStream.fill(BufferedInputStream.java:183
      )
       [java] at java.io.BufferedInputStream.read(BufferedInputStream.java:201
      )
       [java] at java.io.DataInputStream.readByte(DataInputStream.java:331)
       [java] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCa
      ll.java:189)