James Smith created TOMEE-2302:
----------------------------------

             Summary: @org.eclipse.microprofile.faulttolerance.Asynchronous Not 
Working
                 Key: TOMEE-2302
                 URL: https://issues.apache.org/jira/browse/TOMEE-2302
             Project: TomEE
          Issue Type: Bug
          Components: TomEE Core Server, TomEE Maven Plugin
    Affects Versions: 8.0.0-M1
            Reporter: James Smith


Can be reproduced by testing with the following method inside *ClassA*, 
injected by *ClassB*:
{code:java}
@org.eclipse.microprofile.faulttolerance.Asynchronous
public Future<String> slowMethod() throws InterruptedException {
    TimeUnit.SECONDS.sleep(15);
    return CompletableFuture.completedFuture("Hello, World!");
}
{code}
Tested with the TomEE Maven Plugin with the same version ( *8.0.0-M1* ). Method 
is called synchronously. Desired result would be that the method is called 
asynchronously.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to