tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard W. Smith, Jr." <smithh032...@gmail.com>
Subject Re: Apache TomEE and @Schedule timeout
Date Wed, 30 Oct 2013 12:54:03 GMT
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 <jieryn@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?
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message