camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: routing inside xml file
Date Mon, 20 Feb 2012 21:56:50 GMT
I didn't understood what you mean.
Your XML route looks good so far. The code sniped I shared the last time
described how to load this route definition in a standalone java
application.

Best,
Christian

On Mon, Feb 20, 2012 at 10:56 AM, Samruben <ramyasri.mit@gmail.com> wrote:

> I want the full flow should be in xml not in java file. So only I am trying
> to use Spring concept.
> I have seen some jaxb example in the camelinaction source code. I have
> created a project using jaxb.
> I need to JAXB object which is in my method(jaxb annotated class) should
> directly be used to trigger off the flow defined in the XML. for this
> purpose.I have created a xml like this. whether its the right approach?
>
> <beans xmlns="http://www.springframework.org/schema/beans"
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>       xsi:schemaLocation="
>       http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
>       http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring.xsd
>    ">
> <bean id="jms" class="org.apache.camel.component.jms.JmsComponent">
>     <property name="connectionFactory">
>      <bean class="org.apache.activemq.ActiveMQConnectionFactory">
>        <property name="brokerURL" value="tcp://localhost:61616" />
>      </bean>
>    </property>
>  </bean>
>
>     <camelContext id="camel" trace="true"
> xmlns="http://camel.apache.org/schema/spring">
>
>        <dataFormats>
>            <jaxb id="jaxb"
> contextPath="org.ebayopensource.turmeric.demo.v1.services"/>
>        </dataFormats>
>
>        <route>
>            <from uri="direct:services"/>
>            <marshal ref="jaxb"/>
>            <to uri="jms:test.queue"/>
>        </route>
>
>        <route>
>            <from uri="jms:test.queue"/>
>            <unmarshal ref="jaxb"/>
>            <to uri="mock:servicetest"/>
>        </route>
>
>    </camelContext>
>
> </beans>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/routing-inside-xml-file-tp5483745p5498594.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message