Hi Matthew,

I'm not completely sure about which type of routing you want.

If you want the same message to be routed to two different
components, you may use the subscription routing of
ServiceMix
(http://servicemix.org/Publish+and+Subscribe+Routing).  It
basically acts the same way as topics in jms.

If you want the output of your component to be sent to
another component, your component may inherit from the
org.servicemix.components.util.TransformComponent or
org.servicemix.components.util.TransformComponentSupport. 
The destination endpoint is used to route the transformed
response.

Another way is to use the PipelineComponent, which receives
an InOnly exchange, request another component with an InOut
exchange, and sends an InOnly exchange containing the
response of the previous component to the destination endpoint.

Hope this helps,
Cheers,
Guillaume Nodet


---------- Initial Header -----------

From      : "Matthew Clark" <[EMAIL PROTECTED]>
To          : <[email protected]>
Cc          : 
Date      : Fri, 7 Oct 2005 16:51:58 +0100
Subject : [servicemix-user] Multiple consumers?

Hi - quick question about JBI / Servicemix component
routing/message
flow.

 

If I want to consume a message with more than one component,
do I need
to create a new MessageExchange (in this case, InOnly) using
the Factory
provided by the DeliveryChannel in order to continue
processing?  

 

Regards,

 

Matthew.



This message has been scanned for viruses.


------------ ALICE HAUT DEBIT A 29,95 EUR/MOIS ------------
ALICEBOX, l'offre Internet tout en 1 : ADSL, téléphonie, modem Wi-Fi et en 
exclusivité
la hotline gratuite 24h/24 ! Soumis à conditions. Pour en profiter cliquez ici 
http://abonnement.aliceadsl.fr


Reply via email to