nobody HelpLogin
  • Home
  • Content Details

Creating Asynchronous Methods in EJB 3.1

Would you recommend this content?
  • This example demonstrates the use of the EJB 3.1 @Asynchronous annotation in an EJB class or specific method.  In EJB 3.1, session beans support asynchronous method invocations. Bean methods annotated with @Asynchronous are invoked asynchronously. When a client invokes methods with the @Asynchronous annotation, the container immediately returns control to the client and invokes the method in a different thread. The method may return a future object to allow the client to check on the status of the method invocation, and retrieve result values that are asynchronously produced. EJB 3.1 supports this feature by using Future, which is part of standard java concurrency. Future represents the result of an asynchronous computation.

  • 06-Sep-12
  • 45 minutes
  • Anjana Shenoy
  • EJB 3.1 New Features Series

Please Log In to Bookmark this OBE

Bookmarked 1 times