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" <[email protected]> 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.
> <[email protected]> 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 <[email protected]> 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?
> >>
>

Reply via email to