Author: manaRH
Date: 2012-05-26 15:55:52 -0400 (Sat, 26 May 2012)
New Revision: 14756
Modified:
branches/community/Seam_2_3/seam-reference-guide/src/docbook/en-US/Remoting.xml
Log:
JBSEAM-4954
Modified: branches/community/Seam_2_3/seam-reference-guide/src/docbook/en-US/Remoting.xml
===================================================================
---
branches/community/Seam_2_3/seam-reference-guide/src/docbook/en-US/Remoting.xml 2012-05-26
19:55:42 UTC (rev 14755)
+++
branches/community/Seam_2_3/seam-reference-guide/src/docbook/en-US/Remoting.xml 2012-05-26
19:55:52 UTC (rev 14756)
@@ -73,21 +73,16 @@
<programlisting role="JAVA"><![CDATA[@Stateless
@Name("helloAction")
-public class HelloAction implements HelloLocal {
+public class HelloAction {
+ @WebRemote
public String sayHello(String name) {
return "Hello, " + name;
}
}]]></programlisting>
- <para>You also need to create a local interface for our new component - take
special note of the
+ <para>Take special note of the
<literal>@WebRemote</literal> annotation, as it's required to
make our method accessible via remoting:</para>
- <programlisting role="JAVA"><![CDATA[@Local
-public interface HelloLocal {
- @WebRemote
- public String sayHello(String name);
-}]]></programlisting>
-
<para> That's all the server-side code we need to write.</para>
<note>
Show replies by date