You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2009/10/01 13:19:43 UTC

svn commit: r820612 - in /tuscany/java/sca/samples/webapps/helloworld-jms/src/main: java/sample/HelloWorldClient.java java/sample/HelloWorldServiceImpl.java webapp/META-INF/context.xml

Author: antelder
Date: Thu Oct  1 11:19:42 2009
New Revision: 820612

URL: http://svn.apache.org/viewvc?rev=820612&view=rev
Log:
Minor clean up and comments

Modified:
    tuscany/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldClient.java
    tuscany/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldServiceImpl.java
    tuscany/java/sca/samples/webapps/helloworld-jms/src/main/webapp/META-INF/context.xml

Modified: tuscany/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldClient.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldClient.java?rev=820612&r1=820611&r2=820612&view=diff
==============================================================================
--- tuscany/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldClient.java (original)
+++ tuscany/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldClient.java Thu Oct  1 11:19:42 2009
@@ -31,7 +31,7 @@
     }
 
     public void setHelloWorldRef(HelloWorldService helloWorldRef) {
-        System.out.println("HelloWorldClient .setHelloWorldService " + helloWorldRef);        
+        System.out.println("HelloWorldClient.setHelloWorldService " + helloWorldRef);        
         this.helloWorldRef = helloWorldRef;
     }
 }
\ No newline at end of file

Modified: tuscany/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldServiceImpl.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldServiceImpl.java?rev=820612&r1=820611&r2=820612&view=diff
==============================================================================
--- tuscany/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldServiceImpl.java (original)
+++ tuscany/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldServiceImpl.java Thu Oct  1 11:19:42 2009
@@ -18,16 +18,13 @@
  */
 package sample;
 
-import org.oasisopen.sca.annotation.Service;
-
 /**
  * This class implements the HelloWorld service.
  */
-@Service(HelloWorldService.class)
 public class HelloWorldServiceImpl implements HelloWorldService {
 
     public String sayHello(String name) {
-        System.out.println("HelloWorldServiceImpl .sayHello " + name);        
+        System.out.println("HelloWorldServiceImpl.sayHello " + name);        
         return "Hello " + name;
     }
 

Modified: tuscany/java/sca/samples/webapps/helloworld-jms/src/main/webapp/META-INF/context.xml
URL: http://svn.apache.org/viewvc/tuscany/java/sca/samples/webapps/helloworld-jms/src/main/webapp/META-INF/context.xml?rev=820612&r1=820611&r2=820612&view=diff
==============================================================================
--- tuscany/java/sca/samples/webapps/helloworld-jms/src/main/webapp/META-INF/context.xml (original)
+++ tuscany/java/sca/samples/webapps/helloworld-jms/src/main/webapp/META-INF/context.xml Thu Oct  1 11:19:42 2009
@@ -18,6 +18,11 @@
  * under the License.    
 -->
 
+<!--
+This file configures the ActiveMQ JMS resources and is only required when
+using Apache ActiveMQ as the JMS broker in Apache Tomcat.
+-->
+
 <Context>
 
    <Resource name="ConnectionFactory" auth="Container" type="org.apache.activemq.ActiveMQConnectionFactory" description="JMS Connection Factory"