Hi

The <bean> should be outside <camelContext>.

So you have

<blueprint>

    <!-- bean stuff here -->
   <bean>
   <bean>
   <bean>

   <camelContext>
       <!-- camel stuff here -->
   </camelContext>

</blueprint>

On Mon, Oct 17, 2011 at 2:19 PM, Gnanaguru S
<[email protected]> wrote:
>
> Claus,
>
> Please find my code below. As you said, Is this the way to achieve that ?
> <route>
>    <from uri="file://inputdir/"/>
>
>    <loadBalance>
>        <roundRobin/>
>
> *<bean id="activemq1"
>      class="org.apache.activemq.camel.component.ActiveMQComponent">
>      <property name="brokerURL" value="tcp://10.200.208.223:61616"/>
>   </bean>
>
>        <to uri="activemq:queue:test1"/>*
>
> *<bean id="activemq2"
>      class="org.apache.activemq.camel.component.ActiveMQComponent">
>      <property name="brokerURL" value="tcp://10.200.208.224:61616"/>
>   </bean>
>
>        <to uri="activemq:queue:test2"/>
>
> <bean id="activemq3"
>      class="org.apache.activemq.camel.component.ActiveMQComponent">
>      <property name="brokerURL" value="tcp://10.200.208.225:61616"/>
>   </bean>
>
>        <to uri="activemq:queue:test3"/>*
>
>    </loadBalance>
>  </route>
>
>
> Am i right, But the bundle is failed :(
>
> Regards
> Guru
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Specifying-different-destinations-using-camel-tp4909674p4909701.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to