Re: Wiretap query

2012-11-11 Thread Claus Ibsen
On Sat, Nov 10, 2012 at 9:01 PM, gilboy josephoto...@gmail.com wrote:
 Hi

 When I read documentation regarding the wiretap EIP it always looks like a
 copy of the exchange is sent to another endpoint in a different thread.

 Is it valid for me to wiretap and send to a number of endpoints
 sequentially?


What do you mean? The wire tapped messages will not have any influence
on the original message.
Mind that it does a shallow copy of the message, when its being copied.

If you want to send a copy of the same message to X beans at the same
time, then as Christian said, there is the multicast EIP.


 E.g.

 from(direct:start)
 .to(log:foo)

 .wireTap(bean:bean1).*to(bean:bean2).to(bean:bean3).to(bean:bean4)*
 .to(mock:result);

 Thanks
 Joe



 --
 View this message in context: 
 http://camel.465427.n5.nabble.com/Wiretap-query-tp5722510.html
 Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


Wiretap query

2012-11-10 Thread gilboy
Hi

When I read documentation regarding the wiretap EIP it always looks like a
copy of the exchange is sent to another endpoint in a different thread.

Is it valid for me to wiretap and send to a number of endpoints
sequentially?

E.g.

from(direct:start)
.to(log:foo)
   
.wireTap(bean:bean1).*to(bean:bean2).to(bean:bean3).to(bean:bean4)*
.to(mock:result);

Thanks
Joe



--
View this message in context: 
http://camel.465427.n5.nabble.com/Wiretap-query-tp5722510.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Wiretap query

2012-11-10 Thread Christian Müller
You have to use a sub route which use the multicast EIP to send the same
message to multiple endpoints.

Sent from a mobile device
Am 10.11.2012 21:01 schrieb gilboy josephoto...@gmail.com:

 Hi

 When I read documentation regarding the wiretap EIP it always looks like a
 copy of the exchange is sent to another endpoint in a different thread.

 Is it valid for me to wiretap and send to a number of endpoints
 sequentially?

 E.g.

 from(direct:start)
 .to(log:foo)

 .wireTap(bean:bean1).*to(bean:bean2).to(bean:bean3).to(bean:bean4)*
 .to(mock:result);

 Thanks
 Joe



 --
 View this message in context:
 http://camel.465427.n5.nabble.com/Wiretap-query-tp5722510.html
 Sent from the Camel - Users mailing list archive at Nabble.com.