BTW you're talking about servicemix bean endpoints right? Not Camel
bean endpoints?
2008/5/31 taran <[EMAIL PROTECTED]>:
>
> 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-tp17573215s22882p17573215.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>
--
James
-------
http://macstrac.blogspot.com/
Open Source Integration
http://open.iona.com