[jboss-svn-commits] JBL Code SVN: r28984 - labs/jbossesb/workspace/tfennelly/httpg2/product/samples/quickstarts/http_gateway.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Aug 19 06:05:57 EDT 2009
Author: tfennelly
Date: 2009-08-19 06:05:57 -0400 (Wed, 19 Aug 2009)
New Revision: 28984
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:
quickstart mods
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-08-19 09:33:17 UTC (rev 28983)
+++ labs/jbossesb/workspace/tfennelly/httpg2/product/samples/quickstarts/http_gateway/jboss-esb.xml 2009-08-19 10:05:57 UTC (rev 28984)
@@ -4,48 +4,46 @@
<providers>
<http-provider name="http">
- <http-bus busid="ordermgt" />
- <http-bus busid="sales" webXml="/sales-web.xml" jbossWebXml="/sales-jboss-web.xml"/>
+ <http-bus busid="secureFriends">
+ <!-- Only users in the "friend" role are allowed
+ access via the "GET" method. Unspecified
+ methods are not protected (i.e. are allowed)... -->
+ <allowed-roles>
+ <role name="friend" />
+ </allowed-roles>
+ <protected-methods>
+ <method name="GET" />
+ </protected-methods>
+ </http-bus>
+
+ <auth method="BASIC" domain="java:/jaas/JBossWS" /> <!-- uname: "kermit" pw: "thefrog" -->
</http-provider>
</providers>
- <services>
+ <services>
- <service category="OrderManagement" name="Incoming" description="" invmScope="GLOBAL">
+ <service category="Sales" name="List" description="" invmScope="GLOBAL">
<listeners>
- <!-- Receives: http://<host>:<port>/ordermgt/in/* and returns some details of the
- request as the response (mep="RequestResponse"). -->
- <http-listener name="1" busidref="ordermgt" urlPattern="/in/*" is-gateway="true" />
+ <!-- Receives: http://<host>:<port>/Quickstart_http_gateway/http/sales/* but will be forced to
+ authenticate because the "sales" bus has basic auth configured (above)... -->
+ <http-gateway name="sales" busidref="secureFriends" urlPattern="sales/*" />
</listeners>
<actions mep="RequestResponse">
<action name="print" class="org.jboss.soa.esb.samples.quickstart.httpgateway.MyAction"/>
</actions>
</service>
- <service category="OrderManagement" name="Outgoing" description="" invmScope="GLOBAL">
+ <service category="Index" name="List" description="" invmScope="GLOBAL">
<listeners>
- <!-- Receives: http://<host>:<port>/ordermgt/out/* and returns an empty
- response (mep="OneWay") -->
- <http-listener name="2" busidref="ordermgt" urlPattern="/out/*" is-gateway="true" />
+ <!-- Receives: http://<host>:<port>/Quickstart_http_gateway/http/index/*
+ Uses the default http bus configuration... -->
+ <http-gateway name="Index" urlPattern="index/*" />
</listeners>
- <actions mep="OneWay">
- <action name="print" class="org.jboss.soa.esb.samples.quickstart.httpgateway.MyAction"/>
- </actions>
- </service>
-
- <service category="Sales" name="List" description="" invmScope="GLOBAL">
- <listeners>
- <!-- Receives: http://<host>:<port>/sales-portal/close/* but will be forced to
- authenticate because the "sales" bus has basic auth configured
- through the "sales-web.xml". Also note that the web context
- has been modified via the configured jboss-web.xml
- (jbossWebXml="/sales-jboss-web.xml") -->
- <http-listener name="3" busidref="sales" urlPattern="/close/*" is-gateway="true" />
- </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-08-19 09:33:17 UTC (rev 28983)
+++ labs/jbossesb/workspace/tfennelly/httpg2/product/samples/quickstarts/http_gateway/readme.txt 2009-08-19 10:05:57 UTC (rev 28984)
@@ -14,12 +14,10 @@
1. In a command terminal window in this folder ("Window1"), type 'ant deploy'.
2. Open the web brower and send http requests to the following addresses. Be sure to
check the Server console after executing each request:
- a) http://localhost:8080/ordermgt/in/ - Will be routed to the OrderManagement:Incoming
- service. Will return some details about the request.
- b) http://localhost:8080/ordermgt/out/ - Will be routed to the OrderManagement:Outgoing
- service. Will return an empty response as this service is configured with a
- "OneWay" mep.
- c) http://localhost:8080/sales-portal/close/ - Will be forced to authenticate the request because
- the "sales" bus provider has configured a user web.xml (sales-web.xml), which has BASIC
- Auth configured.
+ a) http://localhost:8080/Quickstart_http_gateway/http/sales/a/b/c - Will be routed to the Sales:List
+ service. Will return some details about the request. This Service's <http-gateway> references a
+ "secureFriends" bus, which contains login configurations.
+ b) http://localhost:8080/Quickstart_http_gateway/http/index/XXXX/yyy?a=1,b=2 - Will be routed to the Index:List
+ service. Will return some details about the request. This Service's <http-listener> does not refer
+ to any bus and so simply uses the "default" http bus.
3. In this folder ("Window1"), type 'ant undeploy'.
More information about the jboss-svn-commits
mailing list