Hi,
I have two cases,
Case A : when multicast is used for multicast
<multicast parallelProcessing="true" streaming="true"
id="ZRequestor"
strategyRef="XAggregationStrategy"
timeout="2500" onPrepareRef="Y">
<to uri="direct:A" />
<to uri="direct:B" />
<to uri="direct:C" />
</multicast>
Case B : when multicast is actually (ab)used for unicast
<multicast parallelProcessing="true" streaming="true"
id="WRequestor"
strategyRef="XAggregationStrategy"
timeout="2500" onPrepareRef="Y">
<to uri="direct:A" />
</multicast>
The route directA throws UnknownHostException in 12 s.In case A ,its
working perfectly.Somehow i get timeout after 2500 ms.But B timeout set on
multicast doesnt work.I get response in case B after 12s.I know you
setSOTimeout and ConnectionTimeout doesnt work for UnknownHostException so
how does case A work.WHat should be done for case B.
Additional Data:
I need 2500 ms response irrespective of Exception
(UnknownHost,SocketTimeout,ConnectionTimeout) or no exception.I would like
to keep code simple by using multicast because i am planning to dynamically
populate the multicast with endpoints.SO it may 1 ,2 or 10 endpoints under
multicast.
my only option now is
<route>
<to uri="bean:checkUrl?method=checkUrl(*,{body},url) />
<to uri="direct:A" />
</route>
Do you think i doing something wrong with multicast.Should i proceed with
above route or is there a better way.
Thanks,
Santhosh
--
View this message in context:
http://camel.465427.n5.nabble.com/UNknown-host-timeout-during-http4-component-unicast-tp5729270.html
Sent from the Camel - Users mailing list archive at Nabble.com.