Hello, I did not customize the timeout of the transaction manager, I'm sorry, how do I do that?
The transaction time is generally less than the @Schedule frequency, unless something goes wrong, and then we have more and more items to process the next time. Which makes this a worsening problem of a kind.. the more times we fail the longer the next one is going to take. On Thu, Oct 31, 2013 at 1:28 AM, Romain Manni-Bucau <rmannibu...@gmail.com> wrote: > Hi > > 1h? You customized the timeout of the transaction manager? > > That said you have a biggest issue if you processing is longer than your > scheduling. In particular in write mode. We have a retry config but maybe > check you do what you want cause all technical solutions about this timeout > will be workarounds and not real solutions > Le 31 oct. 2013 05:58, "jieryn" <jie...@gmail.com> a écrit : > >> Thanks for that information, Howard. >> >> Even with @AccessTimeout(-1) which should cause it to wait forever, I >> still take the aforementioned Exception. It seems that some of my >> transactions can take upwards of an hour to complete and that Apache >> TomEE deems this unacceptable. >> >> On Wed, Oct 30, 2013 at 8:54 AM, Howard W. Smith, Jr. >> <smithh032...@gmail.com> wrote: >> > i am doing the same (see the URLs below). >> > >> > /** >> > * >> > * http://tomee.apache.org/examples-trunk/access-timeout/README.html >> > * http://tomee.apache.org/examples-trunk/access-timeout-meta/ >> > * http://docs.oracle.com/cd/E19798-01/821-1841/gipsz/index.html >> > */ >> > @Singleton >> > @Lock(LockType.WRITE) >> > @AccessTimeout(value = 2, unit = TimeUnit.MINUTES) >> > public class EmailRequestBean { >> > >> > >> > >> > On Wed, Oct 30, 2013 at 8:38 AM, jieryn <jie...@gmail.com> wrote: >> > >> >> Greetings, I'm using Apache TomEE 1.6.0-SNAPSHOT from a couple of >> >> weeks ago. I am frequently seeing my @Lock(LockType.WRITE) @Singleton >> >> @Startup MySchedule { @Schedule(/**/) public void run() { /* slowish >> >> */ } } have the following error: >> >> >> >> WARNING [EjbTimerPool - 901] >> >> org.apache.openejb.core.timer.EjbTimerServiceImpl.ejbTimeout Failed to >> >> execute ejbTimeout on MySchedule successfully within 1 attempts >> >> >> >> And then the transaction is rolled back. How can I extend the timeout >> >> such that I have more time for MySchedule#run in order to do its >> >> processing? >> >> >>