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 2008/02/15 12:46:34 UTC

svn commit: r628028 - in /incubator/tuscany/java/sca/samples/helloworld-jms-webapp: README src/main/webapp/META-INF/HelloWorld.composite src/main/webapp/hello.jsp

Author: antelder
Date: Fri Feb 15 03:46:33 2008
New Revision: 628028

URL: http://svn.apache.org/viewvc?rev=628028&view=rev
Log:
Simplify by using a temp response queue

Modified:
    incubator/tuscany/java/sca/samples/helloworld-jms-webapp/README
    incubator/tuscany/java/sca/samples/helloworld-jms-webapp/src/main/webapp/META-INF/HelloWorld.composite
    incubator/tuscany/java/sca/samples/helloworld-jms-webapp/src/main/webapp/hello.jsp

Modified: incubator/tuscany/java/sca/samples/helloworld-jms-webapp/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/helloworld-jms-webapp/README?rev=628028&r1=628027&r2=628028&view=diff
==============================================================================
--- incubator/tuscany/java/sca/samples/helloworld-jms-webapp/README (original)
+++ incubator/tuscany/java/sca/samples/helloworld-jms-webapp/README Fri Feb 15 03:46:33 2008
@@ -1,7 +1,7 @@
 JMS HelloWorld Sample
 =====================
-This sample uses the same code as the calculator sample but deploys the
-sample wrapped in a web app. 
+This sample demonstrates a simple webapp containing a hello world  style client
+and service using the JMS binding for request-response style messaging. 
 
 The README in the samples directory (the directory above this) provides 
 general instructions about building and running samples. Take a look there 
@@ -9,7 +9,7 @@
 
 As this sample provides a web app there is a manual step where the WAR file
 that contains the sample is copied to your web app container. If you just want 
-to give this sample a go deploy the WAR file (target/ sample-helloworld-jms-webapp.war )
+to give this sample a go deploy the WAR file (target/sample-helloworld-jms-webapp.war )
 to you web application server. 
 
 Once the web app is deployed use your browser to visit the following URL;
@@ -18,7 +18,6 @@
 
 The port and hostname will of course vary depending on your local installation. 
 
-
 Configuring the JMS resources
 -----------------------------
 
@@ -26,7 +25,6 @@
 
 - a JMS connection factory named "ConnectionFactory"
 - a JMS queue named "RequestQueue"
-- a JMS queue named "ResponseQueue"
 
 See the following for how to define these resources depending on the application server being used:
 
@@ -66,8 +64,6 @@
 	
 Enter "RequestQueue" for both Message Destination Name and PhysicalName and click Next 	
 
-Click Add destination to add another queue as above this time named "ResponseQueue"
-
 Click Deploy Now
 
 Thats it, you're done.
@@ -117,8 +113,6 @@
 
 That should take you back to the Queues panel where you can click OK to create the new JMS queue.
 
-Back at the Queues front panel repeat the procedure to create a queue named "ResponseQueue"
-
 Save the changes
 
 Restart WebSphere and you're done.
@@ -127,9 +121,6 @@
 
 Others...
 ---------
-
-
-
 
 
 

Modified: incubator/tuscany/java/sca/samples/helloworld-jms-webapp/src/main/webapp/META-INF/HelloWorld.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/helloworld-jms-webapp/src/main/webapp/META-INF/HelloWorld.composite?rev=628028&r1=628027&r2=628028&view=diff
==============================================================================
--- incubator/tuscany/java/sca/samples/helloworld-jms-webapp/src/main/webapp/META-INF/HelloWorld.composite (original)
+++ incubator/tuscany/java/sca/samples/helloworld-jms-webapp/src/main/webapp/META-INF/HelloWorld.composite Fri Feb 15 03:46:33 2008
@@ -29,7 +29,7 @@
           <binding.jms>
               <destination name="RequestQueue"/>
               <response>
-                  <destination name="ResponseQueue"/>
+                  <destination create="always"/>
               </response> 
           </binding.jms>
       </reference>

Modified: incubator/tuscany/java/sca/samples/helloworld-jms-webapp/src/main/webapp/hello.jsp
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/helloworld-jms-webapp/src/main/webapp/hello.jsp?rev=628028&r1=628027&r2=628028&view=diff
==============================================================================
--- incubator/tuscany/java/sca/samples/helloworld-jms-webapp/src/main/webapp/hello.jsp (original)
+++ incubator/tuscany/java/sca/samples/helloworld-jms-webapp/src/main/webapp/hello.jsp Fri Feb 15 03:46:33 2008
@@ -37,8 +37,7 @@
 If you do not see "Hello World" on the line above then there has been a problem.
 <p>
 The sample requires JMS resources be manually configured in the server environment, these are:
-a JMS connection factory named "ConnectionFactory",
-and two destination queues, one named "RequestQueue" and another named "ResponseQueue".
+a JMS connection factory named "ConnectionFactory", and a destination queues named "RequestQueue".
 See the sample README file for more information.
 
 </body>



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org