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

    TransactionTimeout stateful session bean

    Brian Glynn Newbie


      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
       [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(
       [java] at org.jboss.invocation.InvokerInterceptor.invokeInvoker(Invoker
       [java] at org.jboss.invocation.MarshallingInvokerInterceptor.invoke(Mar
       [java] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInte
       [java] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityIntercepto
       [java] at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(Statefu
       [java] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:8
       [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