[jboss-cvs] JBossAS SVN: r103884 - projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Apr 13 02:17:21 EDT 2010
Author: laubai
Date: 2010-04-13 02:17:21 -0400 (Tue, 13 Apr 2010)
New Revision: 103884
Modified:
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Jms.xml
Log:
JBPAPP-1835 Corrected use of @Asynchronous annotation.
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Jms.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Jms.xml 2010-04-13 06:03:09 UTC (rev 103883)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Jms.xml 2010-04-13 06:17:21 UTC (rev 103884)
@@ -81,22 +81,11 @@
</para>
<para>
- For EJB components, we annotate the local interface to specify that a method is processed
- asynchronously.
+ For EJB components, we annotate the implementation of the bean to specify that a method is processed
+ asynchronously. For JavaBean components we 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 we can annotate the component implementation class if we like.)
- </para>
-
- <para>
The use of asynchronous is transparent to the bean class:
</para>
@@ -104,6 +93,7 @@
@Name("paymentHandler")
public class PaymentHandlerBean implements PaymentHandler
{
+ @Asynchronous
public void processPayment(Payment payment)
{
//code to go here
More information about the jboss-cvs-commits
mailing list