You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Reinis Vicups (JIRA)" <ji...@apache.org> on 2013/05/03 16:18:18 UTC

[jira] [Created] (OPENEJB-2017) @Asynchronous methods execute sequentially, although being invoked asynchronously

Reinis Vicups created OPENEJB-2017:
--------------------------------------

             Summary: @Asynchronous methods execute sequentially, although being invoked asynchronously
                 Key: OPENEJB-2017
                 URL: https://issues.apache.org/jira/browse/OPENEJB-2017
             Project: OpenEJB
          Issue Type: Bug
          Components: ejb31
    Affects Versions: 4.6.0
            Reporter: Reinis Vicups


A BaringController that is @Singleton, @Startup is invoked periodically through @Schedule method.

In the @Schedule method of BaringController an @Asynchronous method of a @Stateful BaringWorker is being invoked.

What I observe (see attached replication project) in log output (solely console output) is that although @Schedule method of BaringController is invoked DURING execution of @Asynchronous method of worker, the consecutive invocations of @Asynchronous method are sequencial!

In other words - @Schedule method of BaringController is invoked during execution of @Asynchronous but the consecutive invocations of @Asynchronous "wait" until previous invocation is complete.

Thus effectively I have only one running @Asynchronous thread at any given time.

As I understood from comments in irc this should not be the case.

Thanks and best regards
Reinis

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira