Last active
August 29, 2015 14:12
-
-
Save maxant/2857346572d4b0a2b7db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Stateless | |
public class Service2 { | |
@Asynchronous | |
public Future<String> foo(String s) { | |
// simulate some long running process | |
Thread.sleep(5000); | |
s += "<br>Service2: threadId=" + Thread.currentThread().getId(); | |
return new AsyncResult<String>(s); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment