hello all
 i have a camel-app in which i have configured a  Jetty endpoint which will
handle JSON requests/responses to my application.
this is the simple config data associated with it

<camel:route id="Jetty_Sample">
            <camel:from uri="jetty:http://localhost:8888/myJettyService"; />
            <camel:process ref="myJettyService" />
            <camel:marshal ref="jsonFormatter" />
        </camel:route>

<bean id="jsonFormatter"
class="org.apache.camel.model.dataformat.JsonDataFormat">
        <property name="library" value="Jackson" />
    </bean>

I was wondering if there are any ways to use a router alongside with my
jetty endpoint......

Basically my jetty endpoint is the entry point to my applicatio for json
client. I am guessing the best way to use routing is to fetch one of the
json
parameter being sent, and based on that value, i'll forward the request to
another channel.......

is there anyone who had a similar usecase (having a json endpoint as an
'entry point' in a camel app)? if yes, how are you handling routing?

thanks in advance and regards
 marco

Reply via email to