[jboss-svn-commits] JBL Code SVN: r29142 - labs/jbossesb/workspace/tfennelly/httpg2/product/samples/quickstarts/http_gateway.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Sep 1 14:59:57 EDT 2009


Author: tfennelly
Date: 2009-09-01 14:59:57 -0400 (Tue, 01 Sep 2009)
New Revision: 29142

Modified:
   labs/jbossesb/workspace/tfennelly/httpg2/product/samples/quickstarts/http_gateway/jboss-esb.xml
   labs/jbossesb/workspace/tfennelly/httpg2/product/samples/quickstarts/http_gateway/readme.txt
Log:
more static async response

Modified: labs/jbossesb/workspace/tfennelly/httpg2/product/samples/quickstarts/http_gateway/jboss-esb.xml
===================================================================
--- labs/jbossesb/workspace/tfennelly/httpg2/product/samples/quickstarts/http_gateway/jboss-esb.xml	2009-09-01 17:16:12 UTC (rev 29141)
+++ labs/jbossesb/workspace/tfennelly/httpg2/product/samples/quickstarts/http_gateway/jboss-esb.xml	2009-09-01 18:59:57 UTC (rev 29142)
@@ -47,21 +47,6 @@
             </actions>
         </service>
 
-        <service category="Async" name="List" description="" invmScope="GLOBAL">
-            <listeners>
-                <!-- Receives: http://<host>:<port>/Quickstart_http_gateway/http/Async/List
-                               Uses the default http bus configuration... -->
-                <http-gateway name="Async">
-                    <asyncResponse statusCode="202">
-                        <payload classpathResource="/readme.txt" contentType="text/plain" characterEncoding="UTF-8" />
-                    </asyncResponse>
-                </http-gateway>
-            </listeners>
-            <actions mep="RequestResponse">
-                <action name="print" class="org.jboss.soa.esb.samples.quickstart.httpgateway.MyAction"/>
-            </actions>
-        </service>
-
         <service category="Exceptions" name="Exception1" description="" invmScope="GLOBAL">
             <listeners>
                 <http-gateway name="Exception2" />
@@ -87,6 +72,21 @@
             </actions>
         </service>
 
+        <service category="Async" name="List" description="" invmScope="GLOBAL">
+            <listeners>
+                <!-- Receives: http://<host>:<port>/Quickstart_http_gateway/http/Async/List
+                               Uses the default http bus configuration... -->
+                <http-gateway name="Async">
+                    <asyncResponse statusCode="202">
+                        <payload classpathResource="/readme.txt" contentType="text/plain" characterEncoding="UTF-8" />
+                    </asyncResponse>
+                </http-gateway>
+            </listeners>
+            <actions mep="RequestResponse">
+                <action name="print" class="org.jboss.soa.esb.samples.quickstart.httpgateway.MyAction"/>
+            </actions>
+        </service>
+
     </services>
 
 </jbossesb>
\ No newline at end of file

Modified: labs/jbossesb/workspace/tfennelly/httpg2/product/samples/quickstarts/http_gateway/readme.txt
===================================================================
--- labs/jbossesb/workspace/tfennelly/httpg2/product/samples/quickstarts/http_gateway/readme.txt	2009-09-01 17:16:12 UTC (rev 29141)
+++ labs/jbossesb/workspace/tfennelly/httpg2/product/samples/quickstarts/http_gateway/readme.txt	2009-09-01 18:59:57 UTC (rev 29142)
@@ -30,4 +30,7 @@
           Exceptions:Exception2 service.  This service also throws a "MyActionException", but the <http-gateway>
           on this service overrides the globally defined Exception to HTTP status code mappings defined globally
           on the <http-provider> to return a 503 (Service Unavailable) status for the "MyActionException" exception.
+       e) http://localhost:8080/Quickstart_http_gateway/http/Async/List - Will be routed to the
+          Async:List service, which responds asynchronously with a 202 (Accepted) response code and a static
+          payload of this readme.txt.
   3. In this folder ("Window1"), type 'ant undeploy'.



More information about the jboss-svn-commits mailing list