Author: dan.j.allen
Date: 2009-05-20 16:48:59 -0400 (Wed, 20 May 2009)
New Revision: 10935
Modified:
branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Remoting.xml
Log:
add note about @Transactional annotation
Modified: branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Remoting.xml
===================================================================
--- branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Remoting.xml 2009-05-20
20:32:56 UTC (rev 10934)
+++ branches/community/Seam_2_1/doc/Seam_Reference_Guide/en-US/Remoting.xml 2009-05-20
20:48:59 UTC (rev 10935)
@@ -88,7 +88,16 @@
public String sayHello(String name);
}]]></programlisting>
- <para> That's all the server-side code we need to write. Now for our web
page - create a new page and import the
+ <para> That's all the server-side code we need to write.</para>
+
+ <note>
+ <para>If you are performing a persistence operation in the method marked
<literal>@WebRemote</literal> you will
+ also need to add a <literal>@Transactional</literal> annotation to
the method. Otherwise, your method would
+ execute outside of a transaction without this extra hint.That's because
unlike a JSF request, Seam does not
+ wrap the remoting request in a transaction automatically.</para>
+ </note>
+
+ <para>Now for our web page - create a new page and import the
<literal>helloAction</literal> component: </para>
<programlisting role="XHTML"><![CDATA[<s:remote
include="helloAction"/>]]></programlisting>
Show replies by date