Dear Roman
Many thanks for your inputs.
I could resolve the issue based on your inputs.
Your observation is correct, due to camel endpoint sending Done message to
bean endpoint, it was getting into infinite loop
thanks again
taran
taran wrote:
>
> Hi,
> I'm routing a message from bean endpoint to camel endpoint.
> Then, in my camel route builder, i'm routing message from this camel
> endpoint to log.
>
> But, when a message is sent to bean endpoint, it starts polling.
>
> my bean endpoint code is:
> public void onMessageExchange(MessageExchange reverseExchange)
> throws MessagingException {
> System.out.println(" ### INSIDE MerlinBureauPreferenceBean ###
> ");
> ServiceEndpoint serviceEndpoint = context.getEndpoint(new
> QName("http://com.thirdpillar.scoring", "CamelService"),"CamelEndpoint");
> InOnly forwardExchange =
> channel.createExchangeFactory(serviceEndpoint).createInOnlyExchange();
>
> MessageUtil.transferInToIn(reverseExchange, forwardExchange);
> channel.send(forwardExchange);
> }
>
> and my camel route builder code is:
> from("jbi:endpoint:http://com.thirdpillar.scoring/CamelService/CamelEndpoint")
> .convertBodyTo(DOMSource.class)
> .splitter(XPathBuilder.xpath("//typ:Party").namespace("typ",
> "http://thirdpillar.com/scoring"))
> .convertBodyTo(String.class)
> .to("log:scoring-scoringrouter2")
> .to(SEDA_CHOICE);
>
> when i send a message to bean endpoint, i keep getting system.out.println
> "### INSIDE MerlinBureauPreferenceBean ### " on the servicemix console.
>
> Request for urgent help on this.
>
> best regards
> tarandeep
>
--
View this message in context:
http://www.nabble.com/Routing-message-to-camel-endpoint-results-in-polling-tp17573215s22882p17617588.html
Sent from the Camel - Users mailing list archive at Nabble.com.