diff options
Diffstat (limited to 'java/sca/samples/webapps/helloworld-jms/src/main')
3 files changed, 7 insertions, 5 deletions
diff --git a/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldClient.java b/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldClient.java index a8e9247ae0..f209f11605 100644 --- a/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldClient.java +++ b/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldClient.java @@ -31,7 +31,7 @@ public class HelloWorldClient implements HelloWorldService { }
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 diff --git a/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldServiceImpl.java b/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldServiceImpl.java index 4b59a0c340..c09af51e23 100644 --- a/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldServiceImpl.java +++ b/java/sca/samples/webapps/helloworld-jms/src/main/java/sample/HelloWorldServiceImpl.java @@ -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;
}
diff --git a/java/sca/samples/webapps/helloworld-jms/src/main/webapp/META-INF/context.xml b/java/sca/samples/webapps/helloworld-jms/src/main/webapp/META-INF/context.xml index 2419887413..7575edfc29 100644 --- a/java/sca/samples/webapps/helloworld-jms/src/main/webapp/META-INF/context.xml +++ b/java/sca/samples/webapps/helloworld-jms/src/main/webapp/META-INF/context.xml @@ -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" |