[jboss-dev-forums] [Design of JBoss ESB] - Re: Design of a Content Based Routing Service

kurt.stam@jboss.com do-not-reply at jboss.com
Wed Nov 8 14:05:06 EST 2006


The XPath based DSL worked like a charm. It's all checked in. If you have time you should look at the ContentBasedRoutingUnitTest to see it in action.

Also I now have a real example for the CbrProxyAction configuration. (Taken from qa: CbrProxyActionUnitTest

So if your service need to use the CBR you can add it into the action pipeline like this

  | <action name="TestDefaultRouteAction" 
  |     process="route"
  |     class="org.jboss.soa.esb.actions.CbrProxyAction"
  | 	service-category="MessageRouting"
  | 	service-name="ContentBasedRoutingService" />
  | 

Where process set to:

1. routeAndDeliver (the default), this fires the rules, obtains destinations and delivers the message to this destination service.
2. route, files the rules and adds a collection of destination Services into the message, then at a later time you can call
3. deliver, which obtains the destinations from the message and delivers them.

For now the rules are jared up into a jbossesb-rules.jar. We'll have to see if there is need to make this more dynamic.

Thanks for your help Dave! And it's not too late for some last minute suggestions or comments.

--Kurt


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3984274#3984274

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3984274



More information about the jboss-dev-forums mailing list