-
1. Re: ContentBasedWireTap
ryanhos Nov 25, 2008 10:42 AM (in response to blep)The ContentBasedRouter actually extends ContentBasedWiretap. Just change the name of the class in the CBR quickstart and you'll have yourself a CBW. The sole difference is that ContentBasedRouter.process(Message) returns null.
http://anonsvn.jboss.org/repos/labs/labs/jbossesb/trunk/product/services/jbrules/src/main/java/org/jboss/soa/esb/actions/ContentBasedRouter.java
Happy routing,
ryan -
2. Re: ContentBasedWireTap
kconner Nov 25, 2008 11:02 AM (in response to blep)The difference between the two classes goes back to before we had the ability to specify the mep as part of the service.
Part of the contract when processing actions within the pipeline is that any action returning null causes the pipeline to terminate at that point.
As all routers imply a transfer of control to another service (as opposed to a wiretap which takes a copy of the message) this was previously enforced by returning null from the action. Now that we have the mep it can also be handled by specifying the service as OneWay, although this generally requires more care.