You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by va...@apache.org on 2008/11/27 08:22:55 UTC

svn commit: r721108 - /geronimo/plugins/tuscany/trunk/samples/helloworld-servlet/src/main/java/sample/HelloworldServlet.java

Author: vamsic007
Date: Wed Nov 26 23:22:55 2008
New Revision: 721108

URL: http://svn.apache.org/viewvc?rev=721108&view=rev
Log:
Updated description.

Modified:
    geronimo/plugins/tuscany/trunk/samples/helloworld-servlet/src/main/java/sample/HelloworldServlet.java

Modified: geronimo/plugins/tuscany/trunk/samples/helloworld-servlet/src/main/java/sample/HelloworldServlet.java
URL: http://svn.apache.org/viewvc/geronimo/plugins/tuscany/trunk/samples/helloworld-servlet/src/main/java/sample/HelloworldServlet.java?rev=721108&r1=721107&r2=721108&view=diff
==============================================================================
--- geronimo/plugins/tuscany/trunk/samples/helloworld-servlet/src/main/java/sample/HelloworldServlet.java (original)
+++ geronimo/plugins/tuscany/trunk/samples/helloworld-servlet/src/main/java/sample/HelloworldServlet.java Wed Nov 26 23:22:55 2008
@@ -32,6 +32,9 @@
 import org.osoa.sca.annotations.Reference;
 
 /**
+ * A servlet that invokes Helloworld SCA service through injected references.
+ * 
+ * @version $Rev$ $Date$
  */
 public class HelloworldServlet extends HttpServlet {
     private static final long serialVersionUID = 1L;
@@ -134,13 +137,13 @@
         out.write("<hr>");
         
         out.write("<h3>@ComponentName</h3>");
-        out.write("<br>Injected into annotated field: "+scaComponentName);
-        out.write("<br>Injected using annotated method: "+scaComponentName1);
+        out.write("<br>Injected into field: "+scaComponentName);
+        out.write("<br>Injected using setter method: "+scaComponentName1);
         out.write("<hr>");
 
         out.write("<h3>@Context</h3>");
-        out.write("<br>Injected into annotated field: "+componentContext);
-        out.write("<br>Injected using annotated method: "+componentContext1);
+        out.write("<br>Injected into field: "+componentContext);
+        out.write("<br>Injected using setter method: "+componentContext1);
         out.write("<hr>");
         out.write("</body></html>");
         out.flush();