thanks for your reply.

I got it in camel 1.3.0 documentation.

I tried to use it. I could implement content based router in file
MyRoter.java. I am also using timer component.
Here is the code I have written:

from("timer://tutorial?fixedRate=true&period=10000")                           
// 1
        .setBody(constant("<message>Hello world!</message>"))                   
   
// 2 
           
.to("jbi:endpoint:urn:org:apache:servicemix:tutorial:camel:jmsP1:provider1")
           
.to("jbi:endpoint:urn:org:apache:servicemix:tutorial:camel:jmsP2:provider2")
                .choice()
                        .when(body().isEqualTo("<message>Hello 
world</message>"))
                
.to("jbi:endpoint:urn:org:apache:servicemix:tutorial:camel:jmsP3:provider3");
                
                                 
from("jbi:endpoint:urn:org:apache:servicemix:tutorial:camel:jmsC:consumer")     
// 1
            .to("log:tutorial-jbi")                                             
       
//                                            // 2
            .convertBodyTo(String.class)                                        
       
// 3
            .to("log:tutorial-string"); 

This is working fine. 
But I want to do all this in camel-context.xml.

First problem is :
if i give <from uri ="timer://tutorial?fixedRate=true&period=10000">

It gives me error. How to use timer in camel- context.xml?
I searched the doc but did not get. Also can I set the message body using
camel- context.xml?

please help me.

thanks,
Pratibha


-- 
View this message in context: 
http://www.nabble.com/How-camel-implements-EIP-tp17078472p17097213.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to