[jboss-svn-commits] JBL Code SVN: r8634 - labs/jbossesb/trunk/product/samples/quickstarts/simple_cbr

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Jan 2 15:59:03 EST 2007


Author: burrsutter
Date: 2007-01-02 15:59:02 -0500 (Tue, 02 Jan 2007)
New Revision: 8634

Added:
   labs/jbossesb/trunk/product/samples/quickstarts/simple_cbr/jbossesb.xml
Log:


Added: labs/jbossesb/trunk/product/samples/quickstarts/simple_cbr/jbossesb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/simple_cbr/jbossesb.xml	2007-01-02 20:58:31 UTC (rev 8633)
+++ labs/jbossesb/trunk/product/samples/quickstarts/simple_cbr/jbossesb.xml	2007-01-02 20:59:02 UTC (rev 8634)
@@ -0,0 +1,124 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<jbossesb xmlns="http://anonsvn.labs.jboss.com/labs/jbossesb/trunk/product/etc/schemas/xml/jbossesb-1.0.xsd" >
+
+    <providers>
+          <jms-provider name="JBossMQ" connection-factory="ConnectionFactory"
+                      jndi-context-factory="org.jnp.interfaces.NamingContextFactory"
+                      jndi-URL="localhost" >
+                      
+              <jms-bus busid="quickstartGwChannel">
+                  <jms-message-filter
+                      dest-type="QUEUE"
+                      dest-name="queue/quickstart_simple_cbr_Request"
+                   />
+              </jms-bus>
+              <jms-bus busid="quickstartEsbChannel">
+                  <jms-message-filter
+                      dest-type="QUEUE"
+                      dest-name="queue/B"
+                  />
+              </jms-bus>
+              <jms-bus busid="CBRNormalShipping">
+                  <jms-message-filter
+                      dest-type="QUEUE"
+                      dest-name="queue/CBRNormalShipping"
+                  />
+              </jms-bus>
+              <jms-bus busid="CBRExpressFreeShipping">
+                  <jms-message-filter
+                      dest-type="QUEUE"
+                      dest-name="queue/CBRExpressFreeShipping"
+                  />
+              </jms-bus>
+			  
+          </jms-provider>
+      </providers>
+      
+      <services>
+          <!--  Gateway -->
+          <service 
+          		category="MyFirstCBRServices" 
+          		name="FirstCBRService" 
+          		description="This CBR routes messages to different service destinations based Order totalAmount" 
+          		is-gateway="true"
+                target-service-category="MyFirstCBRServicesESB"
+                target-service-name="FirstCBRServiceESB">
+              <listeners>        
+                  <jms-listener name="the-gateway"
+                              busidref="quickstartGwChannel"
+                              maxThreads="1"
+                              
+                  />                  
+              </listeners>    
+          </service>
+        <!--  ESB CBR Service -->
+        <service 
+        	category="MyFirstCBRServicesESB" 
+        	name="FirstCBRServiceESB" 
+        	description="ESB Listener" 
+        	is-gateway="false"
+        	service-class="org.jboss.soa.esb.listeners.message.CbrListener">
+        	<listeners>        
+                  <jms-listener name="XPathContentBasedRouter"
+                              busidref="quickstartEsbChannel"
+                              maxThreads="1">  
+                  <property name="ruleSet" value="MyESBRules-XPath.drl"/>
+	              <property name="ruleLanguage" value="XPathLanguage.dsl"/>                
+	             </jms-listener>
+             </listeners> 
+        </service>
+        
+        <!--  Normal Shipping -->
+        <service
+  	      category="NormalShipping"
+  	      name="NormalShippingService"
+  	      description="Normal Shipping Service"
+  	      is-gateway="false">
+  	      <listeners>
+  	        <jms-listener
+  	       	  name="CBRNormalShipping"
+  	       	  busidref="CBRNormalShipping"
+  	       	  maxThreads="1"
+  	         />
+  	      </listeners>
+  	      <actions>
+               <action name="displayMessageAction" 
+                   	class="quickstart.MyJMSListenerAction" 
+                   	process="displayMessage" 
+                   	/>   
+                <!-- This can be replaced with notification -->
+                <action name="route"
+                   class="quickstart.RouteNormalShipping"
+                   process="sendReponse"
+                />   
+           </actions>
+  	    </service>
+  	    
+        <!--  Express Shipping -->
+          <service
+  	      category="ExpressShipping"
+  	      name="ExpressShippingService"
+  	      description="Express Shipping Service"
+  	      is-gateway="false">
+  	      <listeners>
+  	        <jms-listener
+  	       	  name="CBRExpressFreeShipping"
+  	       	  busidref="CBRExpressFreeShipping"
+  	       	  maxThreads="1"
+  	         />
+  	      </listeners>
+  	        <actions>
+               <action name="displayMessageAction" 
+                   	class="quickstart.MyJMSListenerAction" 
+                   	process="displayMessage" 
+                   	/>   
+                <!-- This can be replaced with notification -->
+                <action name="route"
+                   class="quickstart.RouteExpressShipping"
+                   process="sendResponse"
+                />   
+           </actions>
+  	    </service>
+      </services>
+     
+</jbossesb>




More information about the jboss-svn-commits mailing list