[jboss-cvs] JBossAS SVN: r103489 - projects/docs/enterprise/5.0.1/Seam_Reference_Guide/en-US.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Apr 2 19:18:08 EDT 2010


Author: laubai
Date: 2010-04-02 19:18:08 -0400 (Fri, 02 Apr 2010)
New Revision: 103489

Modified:
   projects/docs/enterprise/5.0.1/Seam_Reference_Guide/en-US/Jms.xml
Log:
JBPAPP-1835 Corrected use of @Asynchronous annotation in JMS chapter.

Modified: projects/docs/enterprise/5.0.1/Seam_Reference_Guide/en-US/Jms.xml
===================================================================
--- projects/docs/enterprise/5.0.1/Seam_Reference_Guide/en-US/Jms.xml	2010-04-02 23:08:35 UTC (rev 103488)
+++ projects/docs/enterprise/5.0.1/Seam_Reference_Guide/en-US/Jms.xml	2010-04-02 23:18:08 UTC (rev 103489)
@@ -54,33 +54,21 @@
 				An asynchronous call allows a method call to be processed asynchronously (in a different thread) to the caller. Usually, asynchronous calls are used when we want to send an immediate response to the client, and simultaneously process expensive work in the background. This pattern works well in AJAX applications, where the client can automatically poll the server for the result of the work.
 			</para>
 			 <para>
-				For EJB components, annotate the local interface to specify that a method be processed asynchronously:
+				For EJB components, annotate the implementation of the bean to specify that a method be processed asynchronously. For JavaBean components, annotate the component implementation class:
 			</para>
-			 
-<programlisting role="JAVA"><![CDATA[@Local
-public interface PaymentHandler {
-  @Asynchronous
-  public void processPayment(Payment payment);
-}]]>
-</programlisting>
-			 <para>
-				For JavaBean components, you can also annotate the component class.
-			</para>
-			 <para>
-				The use of asynchronicity is transparent to the bean class:
-			</para>
-			 
+			 			 
 <programlisting role="JAVA"><![CDATA[@Stateless
 @Name("paymentHandler")
 public class PaymentHandlerBean implements PaymentHandler
 {
+  @Asynchronous
   public void processPayment(Payment payment) {
     //do some work!
   }
 }]]>
 </programlisting>
 			 <para>
-				It is also transparent to the client:
+				Asynchronicity is transparent to the bean class. It is also transparent to the client:
 			</para>
 			 
 <programlisting role="JAVA"><![CDATA[@Stateful




More information about the jboss-cvs-commits mailing list